Class StringKeyed

java.lang.Object
org.jibx.schema.codegen.StringKeyed
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
StringObjectPair, StringPair

public class StringKeyed extends Object implements Comparable
Base class for a data representation using a string value as a key. This just holds the key and implements the Comparable interface.
  • Field Details

    • m_key

      private final String m_key
      Key string.
  • Constructor Details

    • StringKeyed

      public StringKeyed(String key)
      Constructor.
      Parameters:
      key -
  • Method Details

    • getKey

      public String getKey()
      Get the key string.
      Returns:
      key
    • compareTo

      public int compareTo(Object o)
      Compare to another instance.
      Specified by:
      compareTo in interface Comparable
      Parameters:
      o - other instance
      Returns:
      difference