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