psdi.util

Class DoubleUcaseKey

  • java.lang.Object
    • psdi.util.DoubleUcaseKey
  • All Implemented Interfaces:
    java.lang.Comparable


    public final class DoubleUcaseKey
    extends java.lang.Object
    implements java.lang.Comparable
    The Double Uppercase String Key is useful when you have a dual key, like table + column. It's more efficient and more robust than joining the keys together in a new string. It has methods needed for use in a Hash Map or Set.

    Instances of this class are immutable.

    • Constructor Detail

      • DoubleUcaseKey

        public DoubleUcaseKey(java.lang.String tbname,
                              java.lang.String name)
        Constructor.
    • Method Detail

      • getFirstKey

        public java.lang.String getFirstKey()
      • getSecondKey

        public java.lang.String getSecondKey()
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo(DoubleUcaseKey o)
        Specified by:
        compareTo in interface java.lang.Comparable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object