Class MyLzwCompressor.ByteArray

  • Enclosing class:
    MyLzwCompressor

    private static final class MyLzwCompressor.ByteArray
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] bytes  
      private int hash  
      private int length  
      private int start  
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteArray​(byte[] bytes, int start, int length)  
    • Method Summary

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

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

      • bytes

        private final byte[] bytes
      • start

        private final int start
      • length

        private final int length
      • hash

        private final int hash
    • Constructor Detail

      • ByteArray

        ByteArray​(byte[] bytes,
                  int start,
                  int length)
    • Method Detail

      • hashCode

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

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