Class ArrayByteSequence
- java.lang.Object
-
- uk.gov.gchq.gaffer.commonutil.elementvisibilityutil.ArrayByteSequence
-
- All Implemented Interfaces:
Serializable
,Comparable<ArrayByteSequence>
public class ArrayByteSequence extends Object implements Serializable, Comparable<ArrayByteSequence>
This class is copied from org.apache.accumulo.core.data.ArrayByteSequence.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrayByteSequence(byte[] data)
ArrayByteSequence(byte[] data, int offset, int length)
ArrayByteSequence(String s)
ArrayByteSequence(ByteBuffer buffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteAt(int i)
static int
compareBytes(ArrayByteSequence bs1, ArrayByteSequence bs2)
int
compareTo(ArrayByteSequence obs)
boolean
equals(Object o)
byte[]
getBackingArray()
int
hashCode()
boolean
isBackedByArray()
int
length()
int
offset()
ArrayByteSequence
subSequence(int start, int end)
byte[]
toArray()
String
toString()
-
-
-
Constructor Detail
-
ArrayByteSequence
public ArrayByteSequence(byte[] data)
-
ArrayByteSequence
public ArrayByteSequence(byte[] data, int offset, int length)
-
ArrayByteSequence
public ArrayByteSequence(String s)
-
ArrayByteSequence
public ArrayByteSequence(ByteBuffer buffer)
-
-
Method Detail
-
byteAt
public byte byteAt(int i)
-
getBackingArray
public byte[] getBackingArray()
-
isBackedByArray
public boolean isBackedByArray()
-
length
public int length()
-
offset
public int offset()
-
toArray
public byte[] toArray()
-
subSequence
public ArrayByteSequence subSequence(int start, int end)
-
compareBytes
public static int compareBytes(ArrayByteSequence bs1, ArrayByteSequence bs2)
-
compareTo
public int compareTo(ArrayByteSequence obs)
- Specified by:
compareTo
in interfaceComparable<ArrayByteSequence>
-
-