Module com.github.f4b6a3.uuid
Class BaseNRemainderDecoder
- java.lang.Object
-
- com.github.f4b6a3.uuid.codec.base.function.BaseNDecoder
-
- com.github.f4b6a3.uuid.codec.base.function.BaseNRemainderDecoder
-
public final class BaseNRemainderDecoder extends BaseNDecoder
Function that decodes a base-n string to a UUID.It decodes strings created by encoders that use remainder operator (modulus), a common approach to encode integers.
The decoding process is performed using integer arithmetic.
-
-
Field Summary
-
Fields inherited from class com.github.f4b6a3.uuid.codec.base.function.BaseNDecoder
base, map
-
-
Constructor Summary
Constructors Constructor Description BaseNRemainderDecoder(BaseN base)Constructor with a base-n.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDapply(String string)protected static long[]multiply(long x, long multiplier, long rem)Multiply a long as unsigned 64 bit integer-
Methods inherited from class com.github.f4b6a3.uuid.codec.base.function.BaseNDecoder
get
-
-
-
-
Constructor Detail
-
BaseNRemainderDecoder
public BaseNRemainderDecoder(BaseN base)
Constructor with a base-n.- Parameters:
base- a base-n
-
-