Package at.favre.lib.idmask
Class IdMask.BigIntegerIdMask
- java.lang.Object
-
- at.favre.lib.idmask.IdMask.BaseIdMask
-
- at.favre.lib.idmask.IdMask.BigIntegerIdMask
-
- All Implemented Interfaces:
IdMask<BigInteger>
public static final class IdMask.BigIntegerIdMask extends IdMask.BaseIdMask implements IdMask<BigInteger>
Implementation which handles a big integer up to 15 byte two complements representation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface at.favre.lib.idmask.IdMask
IdMask.BaseIdMask, IdMask.BigIntegerIdMask, IdMask.ByteArray128bitMask, IdMask.LongIdMask, IdMask.LongIdTupleMask, IdMask.UuidMask
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
mask(BigInteger id)
Mask a given id.BigInteger
unmask(String encoded)
Unmask id that was previously masked withIdMask.mask(Object)
-
-
-
Method Detail
-
mask
public String mask(BigInteger id)
Description copied from interface:IdMask
Mask a given id.- Specified by:
mask
in interfaceIdMask<BigInteger>
- Parameters:
id
- to mask- Returns:
- encoded masked id
-
unmask
public BigInteger unmask(String encoded)
Description copied from interface:IdMask
Unmask id that was previously masked withIdMask.mask(Object)
- Specified by:
unmask
in interfaceIdMask<BigInteger>
- Parameters:
encoded
- to unmask- Returns:
- original id
-
-