Class IdentityEncoding
- java.lang.Object
-
- org.processmining.specpp.datastructures.encoding.IdentityEncoding
-
- All Implemented Interfaces:
Encoding<java.lang.Integer,java.lang.Integer>,HasDenseRange,IntEncoding<java.lang.Integer>,PrimitiveIntEncoding,Immutable,ProperlyHashable
public class IdentityEncoding extends java.lang.Object implements PrimitiveIntEncoding
-
-
Field Summary
-
Fields inherited from interface org.processmining.specpp.datastructures.encoding.IntEncoding
OUTSIDE_RANGE
-
-
Constructor Summary
Constructors Constructor Description IdentityEncoding(int low, int high)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdecodeInt(int i)intencodeInt(int i)booleanequals(java.lang.Object o)inthashCode()booleanisIntInDomain(int toEncode)booleanisIntInRange(int toDecode)java.util.stream.IntStreamprimitiveDomain()java.util.stream.IntStreamprimitiveRange()intsize()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, 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
-
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
-
encodeInt
public int encodeInt(int i)
- Specified by:
encodeIntin interfacePrimitiveIntEncoding
-
decodeInt
public int decodeInt(int i)
- Specified by:
decodeIntin interfacePrimitiveIntEncoding
-
size
public int size()
-
primitiveDomain
public java.util.stream.IntStream primitiveDomain()
- Specified by:
primitiveDomainin 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>
-
-