Package com.aspose.tasks
Class GenericProperty<TKey>
- java.lang.Object
-
- com.aspose.tasks.GenericProperty<TKey>
-
public class GenericProperty<TKey> extends Object
Represents a container property.
TKey: The type of property value.
-
-
Constructor Summary
Constructors Constructor Description GenericProperty()Initializes a new instance of theGenericProperty{T}class.GenericProperty(Class<TKey> typeOfTKey, String name)Initializes a new instance of theGenericProperty{TKey}struct.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()GenericProperty<TKey>Clone()Creates and returns a deep copy of this instance.voidCloneTo(GenericProperty<TKey> that)Makes a deep copy of the instance into another instance.static <TKey> booleanequals(GenericProperty<TKey> obj1, GenericProperty<TKey> obj2)Returns a value indicating whether specifiedobj1instance is equal to the specifiedobj2instance.booleanequals(Object obj)StringgetName()Gets a name of the property.ObjectgetValue()Gets a value of the property.
-
-
-
Method Detail
-
Clone
public GenericProperty<TKey> Clone()
Creates and returns a deep copy of this instance.- Returns:
- a deep copy of this object.
-
CloneTo
public void CloneTo(GenericProperty<TKey> that)
Makes a deep copy of the instance into another instance.- Parameters:
that- another instance.
-
clone
public Object clone()
- Returns:
-
equals
public boolean equals(Object obj)
-
equals
public static <TKey> boolean equals(GenericProperty<TKey> obj1, GenericProperty<TKey> obj2)
Returns a value indicating whether specifiedobj1instance is equal to the specifiedobj2instance.- Parameters:
obj1- the first object to compare.obj2- the second object to compare.- Returns:
- returns true if specified
obj1instance is equal to the specifiedobj2instance; otherwise, false.
-
getName
public final String getName()
Gets a name of the property.
- Returns:
- a name of the property.
-
getValue
public final Object getValue()
Gets a value of the property.
- Returns:
- a value of the property.
-
-