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)
-
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)
-