public class GenericProperty<TKey> extends Object
Represents a container property.
TKey
: The type of property value.
Constructor and Description |
---|
GenericProperty()
Initializes a new instance of the
GenericProperty{T} class. |
GenericProperty(Class<TKey> typeOfTKey,
String name)
Initializes a new instance of the
GenericProperty{TKey} struct. |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
GenericProperty<TKey> |
Clone()
Creates and returns a deep copy of this instance.
|
void |
CloneTo(GenericProperty<TKey> that)
Makes a deep copy of the instance into another instance.
|
static <TKey> boolean |
equals(GenericProperty<TKey> obj1,
GenericProperty<TKey> obj2)
Returns a value indicating whether specified
obj1 instance is equal to the specified obj2
instance. |
boolean |
equals(Object obj) |
String |
getName()
Gets a name of the property.
|
Object |
getValue()
Gets a value of the property.
|
public GenericProperty()
Initializes a new instance of the GenericProperty{T}
class.
public GenericProperty<TKey> Clone()
public void CloneTo(GenericProperty<TKey> that)
that
- another instance.public boolean equals(Object obj)
public static <TKey> boolean equals(GenericProperty<TKey> obj1, GenericProperty<TKey> obj2)
obj1
instance is equal to the specified obj2
instance.obj1
- the first object to compare.obj2
- the second object to compare.obj1
instance is equal to the specified obj2
instance;
otherwise, false.public final String getName()
Gets a name of the property.
public final Object getValue()
Gets a value of the property.