GenericProperty

Inheritance: java.lang.Object

public class GenericProperty<TKey>

Represents a container property.

TKey : The type of property value.

Constructors

ConstructorDescription
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

MethodDescription
<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:

ParameterTypeDescription
typeOfTKeyjava.lang.Class<TKey>
namejava.lang.StringThe 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:

ParameterTypeDescription
obj1GenericPropertythe first object to compare.
obj2GenericPropertythe 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:

ParameterTypeDescription
thatGenericPropertyanother instance.

clone()

public Object clone()

Returns: java.lang.Object - {@inheritDoc}

equals(Object obj)

public boolean equals(Object obj)

Parameters:

ParameterTypeDescription
objjava.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.