@Test public void createForLongTuples() { LongTuple tuple = new LongTuple(41L, 19283183891L); IdMask<LongTuple> idMask = IdMasks.forLongTuples(Config.builder(Bytes.random(16).array()).build()); String encoded = idMask.mask(tuple); LongTuple decoded = idMask.unmask(encoded); assertEquals(tuple, decoded); }
public static IdMask<LongTuple> forLongTuples(Config config) { return new IdMask.LongIdTupleMask(config); }
IdMasks { public static IdMask<LongTuple> forLongTuples(Config config) { return new IdMask.LongIdTupleMask(config); } }
IdMasks { public static IdMask<LongTuple> forLongTuples(Config config) { return new IdMask.LongIdTupleMask(config); } private  IdMasks(); }
IdMasks { public static IdMask<LongTuple> forLongTuples(Config config) { return new IdMask.LongIdTupleMask(config); } private  IdMasks(); static IdMask<Long> forLongIds(Config config); static IdMask<LongTuple> forLongTuples(Config config); static IdMask<UUID> forUuids(Config config); static IdMask<byte[]> for128bitNumbers(Config config); static IdMask<BigInteger> forBigInteger(Config config); }
IdMasks { public static IdMask<LongTuple> forLongTuples(Config config) { return new IdMask.LongIdTupleMask(config); } private  IdMasks(); static IdMask<Long> forLongIds(Config config); static IdMask<LongTuple> forLongTuples(Config config); static IdMask<UUID> forUuids(Config config); static IdMask<byte[]> for128bitNumbers(Config config); static IdMask<BigInteger> forBigInteger(Config config);  }