Documentation of 'com.jstatcom.model.JSCPropertyTypes' Java class
JSCPropertyTypes
com.jstatcom.model

Class JSCPropertyTypes

  • Direct Known Subclasses:
    CSignTypes


    public abstract class JSCPropertyTypes
    extends java.lang.Object
    This class contains an enumeration of constants that define properties that can be set for a JSCData object. This can be used by clients to define specific settings to be stored in a data object. The properties are not serialized with JSCData objects.

    It implements the typesave enum pattern (Joshua Bloch, "Effective Java", Item 21). If you compare JSCPropertyTypes, always use the == operator.

    • Constructor Summary

      Constructors 
      Constructor and Description
      JSCPropertyTypes(java.lang.String name)
      Creates a new property type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o)
      Override prevention method to enforce a.equals(b) if and only if a==b.
      int hashCode()
      Override prevention method invokes super method.
      java.lang.String name()
      Gets the name of this type.
      java.lang.String toString()
      Gets a string representation.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JSCPropertyTypes

        public JSCPropertyTypes(java.lang.String name)
        Creates a new property type.
        Parameters:
        name - the identifier of the new property
        Throws:
        java.lang.IllegalArgumentException - if (name == null)
    • Method Detail

      • equals

        public final boolean equals(java.lang.Object o)
        Override prevention method to enforce a.equals(b) if and only if a==b.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - object to compare with
        Returns:
        true if equal, false otherwise
      • hashCode

        public final int hashCode()
        Override prevention method invokes super method.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hash code
      • name

        public final java.lang.String name()
        Gets the name of this type.
        Returns:
        the name of this type
      • toString

        public final java.lang.String toString()
        Gets a string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.