From 6dc49829aa2bb4a2767d2c2d0c361cdcf8804dcd Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Mon, 9 May 2016 14:10:52 +0200 Subject: Add missing doc-block --- src/ch/epfl/xblast/client/GameStateDeserializer.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ch/epfl') diff --git a/src/ch/epfl/xblast/client/GameStateDeserializer.java b/src/ch/epfl/xblast/client/GameStateDeserializer.java index 143641d..2c06dbc 100644 --- a/src/ch/epfl/xblast/client/GameStateDeserializer.java +++ b/src/ch/epfl/xblast/client/GameStateDeserializer.java @@ -190,6 +190,13 @@ public final class GameStateDeserializer { .collect(Collectors.toList())); } + /** + * Unserializes a byte representation of the ticks. + * + * @param serializedTicks the serialized ticks + * @return the ticks + * @throws IllegalArgumentException if the byte chunk is invalid. + */ private static int deserializeTicks(List serializedTicks) { if (Objects.isNull(serializedTicks) || serializedTicks.size() != SERIALIZED_TICKS_LENGTH) throw new IllegalArgumentException(); -- cgit v1.2.3