Class IntIntEncoding
- java.lang.Object
-
- org.processmining.specpp.datastructures.encoding.IntIntEncoding
-
- All Implemented Interfaces:
Encoding<java.lang.Integer,java.lang.Integer>,HasDenseRange,IntEncoding<java.lang.Integer>,PrimitiveIntEncoding,Copyable<IntIntEncoding>,Immutable,ProperlyHashable,ProperlyPrintable
public class IntIntEncoding extends java.lang.Object implements PrimitiveIntEncoding, ProperlyHashable, ProperlyPrintable, Copyable<IntIntEncoding>
-
-
Field Summary
-
Fields inherited from interface org.processmining.specpp.datastructures.encoding.IntEncoding
OUTSIDE_RANGE
-
-
Constructor Summary
Constructors Constructor Description IntIntEncoding(int[] sortedIntegers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntIntEncodingcopy()intdecodeInt(int value)intencodeInt(int item)booleanequals(java.lang.Object o)inthashCode()booleanisIntInDomain(int toEncode)booleanisIntInRange(int toDecode)IntIntEncodingof(java.util.stream.IntStream ints)java.util.stream.IntStreamprimitiveDomain()java.util.stream.IntStreamprimitiveRange()intsize()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.processmining.specpp.datastructures.encoding.IntEncoding
isInRange, range
-
Methods inherited from interface org.processmining.specpp.datastructures.encoding.PrimitiveIntEncoding
decode, decodeIntStream, domain, encode, encodeIntStream, isInDomain
-
-
-
-
Method Detail
-
of
public IntIntEncoding of(java.util.stream.IntStream ints)
-
size
public int size()
-
primitiveDomain
public java.util.stream.IntStream primitiveDomain()
- Specified by:
primitiveDomainin interfacePrimitiveIntEncoding
-
encodeInt
public int encodeInt(int item)
- Specified by:
encodeIntin interfacePrimitiveIntEncoding
-
decodeInt
public int decodeInt(int value)
- Specified by:
decodeIntin interfacePrimitiveIntEncoding
-
primitiveRange
public java.util.stream.IntStream primitiveRange()
- Specified by:
primitiveRangein interfaceIntEncoding<java.lang.Integer>
-
isIntInDomain
public boolean isIntInDomain(int toEncode)
- Specified by:
isIntInDomainin interfacePrimitiveIntEncoding
-
isIntInRange
public boolean isIntInRange(int toDecode)
- Specified by:
isIntInRangein interfaceIntEncoding<java.lang.Integer>
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceProperlyPrintable- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceProperlyHashable- Overrides:
hashCodein classjava.lang.Object
-
copy
public IntIntEncoding copy()
- Specified by:
copyin interfaceCopyable<IntIntEncoding>
-
-