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 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 specifiedobj1
instance is equal to the specifiedobj2
instance.boolean
equals(Object obj)
String
getName()
Gets a name of the property.Object
getValue()
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 specifiedobj1
instance is equal to the specifiedobj2
instance.- Parameters:
obj1
- the first object to compare.obj2
- the second object to compare.- Returns:
- returns true if specified
obj1
instance is equal to the specifiedobj2
instance; 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.
-
-