Package hydra.pg.model
Class Property<V>
- java.lang.Object
-
- hydra.pg.model.Property<V>
-
- All Implemented Interfaces:
java.io.Serializable
public class Property<V> extends java.lang.Object implements java.io.Serializable
A key/value property- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Name
FIELD_NAME_KEY
static Name
FIELD_NAME_VALUE
PropertyKey
key
They key of the propertystatic Name
TYPE_NAME
V
value
The value of the property
-
Constructor Summary
Constructors Constructor Description Property(PropertyKey key, V value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
Property
withKey(PropertyKey key)
Property
withValue(V value)
-
-
-
Field Detail
-
TYPE_NAME
public static final Name TYPE_NAME
-
FIELD_NAME_KEY
public static final Name FIELD_NAME_KEY
-
FIELD_NAME_VALUE
public static final Name FIELD_NAME_VALUE
-
key
public final PropertyKey key
They key of the property
-
value
public final V value
The value of the property
-
-
Constructor Detail
-
Property
public Property(PropertyKey key, V value)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
withKey
public Property withKey(PropertyKey key)
-
-