Module utilities

Class KeyDescriptionImpl

java.lang.Object
de.grogra.util.KeyDescriptionImpl
All Implemented Interfaces:
Described, KeyDescription

public class KeyDescriptionImpl extends Object implements KeyDescription
  • Constructor Details

  • Method Details

    • getDescription

      public Object getDescription(String type)
      Description copied from interface: Described
      Returns the description associated with the given type. type has to be one of the predefined constants of this interface, the returned value has to conform to the specification of the used constant.
      Specified by:
      getDescription in interface Described
      Parameters:
      type - the type of description
      Returns:
      the description, or null if no description is available
    • getKey

      public String getKey()
      Description copied from interface: KeyDescription
      Returns the key which is described by this instance.
      Specified by:
      getKey in interface KeyDescription
      Returns:
      the key
    • getType

      public Type getType()
      Description copied from interface: KeyDescription
      Returns the type of values which are associated with the key.
      Specified by:
      getType in interface KeyDescription
      Returns:
      the type of values
    • getQuantity

      public Quantity getQuantity()
      Description copied from interface: KeyDescription
      Returns the quantity of values which are associated with the key.
      Specified by:
      getQuantity in interface KeyDescription
      Returns:
      the quantity of values