class PlatformPartitionDeserializer implements Deserializer<PlatformPartition> {

   @Override
   public PlatformPartition deserialize(byte[] input) throws IllegalArgumentException {
      int id = ByteUtil.bytesToInt(input);
      return new DefaultPartition(id);
   }

}