Class IndexEvents.Entry

  • Enclosing class:
    IndexEvents

    public class IndexEvents.Entry
    extends java.lang.Object
    Class for an index entry.

    In the first step, only in1, in2,in3 and tag are used. After the collections of the index entries, pagenumbers are used.

    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(java.lang.String aIn1, java.lang.String aIn2, java.lang.String aIn3, java.lang.String aTag)
      Create a new object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPageNumberAndTag​(int number, java.lang.String tag)
      Add a pagenumber.
      java.lang.String getIn1()
      Returns the in1.
      java.lang.String getIn2()
      Returns the in2.
      java.lang.String getIn3()
      Returns the in3.
      java.lang.String getKey()
      Returns the key for the map-entry.
      int getPageNumber()
      Returns the pagenumber for this entry.
      java.util.List<java.lang.Integer> getPagenumbers()
      Returns the pagenumbers.
      java.lang.String getTag()
      Returns the tag.
      java.util.List<java.lang.String> getTags()
      Returns the tags.
      java.lang.String toString()
      print the entry (only for test)
      • Methods inherited from class java.lang.Object

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

      • Entry

        public Entry​(java.lang.String aIn1,
                     java.lang.String aIn2,
                     java.lang.String aIn3,
                     java.lang.String aTag)
        Create a new object.
        Parameters:
        aIn1 - The first level.
        aIn2 - The second level.
        aIn3 - The third level.
        aTag - The tag.
    • Method Detail

      • getIn1

        public java.lang.String getIn1()
        Returns the in1.
        Returns:
        Returns the in1.
      • getIn2

        public java.lang.String getIn2()
        Returns the in2.
        Returns:
        Returns the in2.
      • getIn3

        public java.lang.String getIn3()
        Returns the in3.
        Returns:
        Returns the in3.
      • getTag

        public java.lang.String getTag()
        Returns the tag.
        Returns:
        Returns the tag.
      • getPageNumber

        public int getPageNumber()
        Returns the pagenumber for this entry.
        Returns:
        Returns the pagenumber for this entry.
      • addPageNumberAndTag

        public void addPageNumberAndTag​(int number,
                                        java.lang.String tag)
        Add a pagenumber.
        Parameters:
        number - The page number.
        tag -
      • getKey

        public java.lang.String getKey()
        Returns the key for the map-entry.
        Returns:
        Returns the key for the map-entry.
      • getPagenumbers

        public java.util.List<java.lang.Integer> getPagenumbers()
        Returns the pagenumbers.
        Returns:
        Returns the pagenumbers.
      • getTags

        public java.util.List<java.lang.String> getTags()
        Returns the tags.
        Returns:
        Returns the tags.
      • toString

        public java.lang.String toString()
        print the entry (only for test)
        Overrides:
        toString in class java.lang.Object
        Returns:
        the toString implementation of the entry