Class TextHashFunctions.Line

  • Enclosing class:
    TextHashFunctions

    private static class TextHashFunctions.Line
    extends java.lang.Object
    Utility to help us identify unique lines in a file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int pos  
      private RawText txt  
    • Constructor Summary

      Constructors 
      Constructor Description
      Line​(RawText txt, int pos)  
    • Method Summary

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

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

      • pos

        private final int pos
    • Constructor Detail

      • Line

        Line​(RawText txt,
             int pos)
    • Method Detail

      • 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