Class RecordImpl
- java.lang.Object
-
- de.tudresden.inf.lat.tabulas.table.RecordImpl
-
- All Implemented Interfaces:
Record
,Serializable
,scala.Equals
,scala.Product
public class RecordImpl extends Object implements Record, scala.Product, Serializable
This is the default implementation of a record.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecordImpl(scala.collection.immutable.Map<String,PrimitiveTypeValue> map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecordImpl
apply()
static RecordImpl
apply(Record otherRecord)
Constructs a new record using another one.scala.Option<PrimitiveTypeValue>
get(String key)
Returns an optional containing the value of a given property, if this value is present, or an empty optional otherwise.scala.collection.immutable.Map<String,PrimitiveTypeValue>
getMap()
Returns a map representing this record.scala.collection.immutable.Seq<String>
getProperties()
Returns the property names.scala.collection.immutable.Map<String,PrimitiveTypeValue>
map()
RecordImpl
set(String key, PrimitiveTypeValue value)
String
toString()
-
-
-
Constructor Detail
-
RecordImpl
public RecordImpl(scala.collection.immutable.Map<String,PrimitiveTypeValue> map)
-
-
Method Detail
-
apply
public static RecordImpl apply()
-
apply
public static RecordImpl apply(Record otherRecord)
Constructs a new record using another one.- Parameters:
otherRecord
- other record- Returns:
- (undocumented)
-
map
public scala.collection.immutable.Map<String,PrimitiveTypeValue> map()
-
get
public scala.Option<PrimitiveTypeValue> get(String key)
Description copied from interface:Record
Returns an optional containing the value of a given property, if this value is present, or an empty optional otherwise.
-
getMap
public scala.collection.immutable.Map<String,PrimitiveTypeValue> getMap()
Description copied from interface:Record
Returns a map representing this record.
-
set
public RecordImpl set(String key, PrimitiveTypeValue value)
-
getProperties
public scala.collection.immutable.Seq<String> getProperties()
Description copied from interface:Record
Returns the property names.- Specified by:
getProperties
in interfaceRecord
- Returns:
- the property names
-
-