Class AlphabeticIndex.Record<V>

  • Enclosing class:
    AlphabeticIndex<V>

    public static class AlphabeticIndex.Record<V>
    extends java.lang.Object
    A (name, data) pair, to be sorted by name into one of the index buckets. The user data is not used by the index implementation.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private V data  
      private java.lang.CharSequence name  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Record​(java.lang.CharSequence name, V data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V getData()
      Get the data
      java.lang.CharSequence getName()
      Get the name
      java.lang.String toString()
      Standard toString()
      • Methods inherited from class java.lang.Object

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

      • name

        private final java.lang.CharSequence name
      • data

        private final V data
    • Constructor Detail

      • Record

        private Record​(java.lang.CharSequence name,
                       V data)
    • Method Detail

      • getName

        public java.lang.CharSequence getName()
        Get the name
        Returns:
        the name
      • getData

        public V getData()
        Get the data
        Returns:
        the data
      • toString

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