Joe Soltzberg

43%
Flag icon
 private static final Map<Phase, Map<Phase, Transition>>         m = Stream.of(values()).collect(groupingBy(t -> t.from,          () -> new EnumMap<>(Phase.class),          toMap(t -> t.to, t -> t,             (x, y) -> y, () -> new EnumMap<>(Phase.class))));
Joe Soltzberg
Code like this needs to be broken up IMO for readability
Effective Java
Rate this book
Clear rating
Open Preview