com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class GenericProperty<TKey>



  • public class GenericProperty<TKey>
    extends Object

    Represents a container property.

    TKey: The type of property value.

    • Constructor Detail

      • GenericProperty

        public GenericProperty()

        Initializes a new instance of the GenericProperty{T} class.

      • GenericProperty

        public GenericProperty(Class<TKey> typeOfTKey,
                               String name)

        Initializes a new instance of the GenericProperty{TKey} struct.

        Parameters:
        name - The name 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.
      • equals

        public boolean equals(Object obj)
        Overrides:
        equals in class Object
        Parameters:
        obj -
        Returns:
      • equals

        public 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.
        Parameters:
        obj1 - the first object to compare.
        obj2 - the second object to compare.
        Returns:
        returns true if specified obj1 instance is equal to the specified obj2 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.