Class FormatCache.ArrayKey

  • Enclosing class:
    FormatCache<F extends java.text.Format>

    private static final class FormatCache.ArrayKey
    extends java.lang.Object
    Helper class to hold multi-part Map keys as arrays.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int hashCode  
      private java.lang.Object[] keys  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayKey​(java.lang.Object... keys)
      Constructs an instance of MultipartKey to hold the specified objects.
    • Field Detail

      • keys

        private final java.lang.Object[] keys
      • hashCode

        private final int hashCode
    • Constructor Detail

      • ArrayKey

        ArrayKey​(java.lang.Object... keys)
        Constructs an instance of MultipartKey to hold the specified objects.
        Parameters:
        keys - the set of objects that make up the key. Each key may be null.
    • Method Detail

      • computeHashCode

        private static int computeHashCode​(java.lang.Object[] keys)
      • hashCode

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

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