Class FastDateFormat.Pair

  • Enclosing class:
    FastDateFormat

    private static class FastDateFormat.Pair
    extends java.lang.Object

    Helper class for creating compound objects.

    One use for this class is to create a hashtable key out of multiple objects.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object mObj1  
      private java.lang.Object mObj2  
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(java.lang.Object obj1, java.lang.Object obj2)
      Constructs an instance of Pair to hold the specified objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      int hashCode()
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • mObj1

        private final java.lang.Object mObj1
      • mObj2

        private final java.lang.Object mObj2
    • Constructor Detail

      • Pair

        public Pair​(java.lang.Object obj1,
                    java.lang.Object obj2)
        Constructs an instance of Pair to hold the specified objects.
        Parameters:
        obj1 - one object in the pair
        obj2 - second object in the pair
    • Method Detail

      • equals

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

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

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