org.sonar.duplications.block
Class ByteArray
java.lang.Object
org.sonar.duplications.block.ByteArray
public final class ByteArray
- extends Object
Represents hash for Block
. Immutable.
TODO Godin: would be better to rename to BlockHash,
also maybe we can incorporate it into Block to reduce memory footprint during detection of duplicates
ByteArray
public ByteArray(String hexString)
ByteArray
public ByteArray(byte[] bytes)
ByteArray
public ByteArray(long value)
ByteArray
public ByteArray(int value)
ByteArray
public ByteArray(int[] intArray)
toIntArray
public int[] toIntArray()
toHexString
public String toHexString()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2009-2012 SonarSource. All Rights Reserved.