@Test(expected = IllegalArgumentException.class) public void parseIllegalArgument() { IDBuilder.parse(new byte[0]); }
public static Blueprint parse(byte[] id) { assertNotNullEightBytes(id); int sequence = parseSequenceIdNoChecks(id); int generatorId = parseGeneratorIdNoChecks(id); int clusterId = parseClusterIdNoChecks(id); long timestamp = parseTimestampNoChecks(id); return new Blueprint(timestamp, sequence, generatorId, clusterId); }
IDBuilder { public static Blueprint parse(byte[] id) { assertNotNullEightBytes(id); int sequence = parseSequenceIdNoChecks(id); int generatorId = parseGeneratorIdNoChecks(id); int clusterId = parseClusterIdNoChecks(id); long timestamp = parseTimestampNoChecks(id); return new Blueprint(timestamp, sequence, generatorId, clusterId); } }
IDBuilder { public static Blueprint parse(byte[] id) { assertNotNullEightBytes(id); int sequence = parseSequenceIdNoChecks(id); int generatorId = parseGeneratorIdNoChecks(id); int clusterId = parseClusterIdNoChecks(id); long timestamp = parseTimestampNoChecks(id); return new Blueprint(timestamp, sequence, generatorId, clusterId); }  }
IDBuilder { public static Blueprint parse(byte[] id) { assertNotNullEightBytes(id); int sequence = parseSequenceIdNoChecks(id); int generatorId = parseGeneratorIdNoChecks(id); int clusterId = parseClusterIdNoChecks(id); long timestamp = parseTimestampNoChecks(id); return new Blueprint(timestamp, sequence, generatorId, clusterId); }  static byte[] build(Blueprint blueprint); static Blueprint parse(byte[] id); static int parseSequenceId(byte[] id); static int parseGeneratorId(byte[] id); static int parseClusterId(byte[] id); static long parseTimestamp(byte[] id); }
IDBuilder { public static Blueprint parse(byte[] id) { assertNotNullEightBytes(id); int sequence = parseSequenceIdNoChecks(id); int generatorId = parseGeneratorIdNoChecks(id); int clusterId = parseClusterIdNoChecks(id); long timestamp = parseTimestampNoChecks(id); return new Blueprint(timestamp, sequence, generatorId, clusterId); }  static byte[] build(Blueprint blueprint); static Blueprint parse(byte[] id); static int parseSequenceId(byte[] id); static int parseGeneratorId(byte[] id); static int parseClusterId(byte[] id); static long parseTimestamp(byte[] id);  }