@Test public void testMutateAll() { assertThat((List) mutateAll(null), is(nullValue())); }
@SuppressWarnings("unchecked") public static <M extends PMessage<M,F>, F extends PField, B extends PMessageBuilder<M,F>> List<B> mutateAll(Collection<M> messages) { if (messages == null) { return null; } return (List<B>) messages.stream() .map(PMessage::mutate) .collect(Collectors.toList()); }
MessageStoreUtils { @SuppressWarnings("unchecked") public static <M extends PMessage<M,F>, F extends PField, B extends PMessageBuilder<M,F>> List<B> mutateAll(Collection<M> messages) { if (messages == null) { return null; } return (List<B>) messages.stream() .map(PMessage::mutate) .collect(Collectors.toList()); } }
MessageStoreUtils { @SuppressWarnings("unchecked") public static <M extends PMessage<M,F>, F extends PField, B extends PMessageBuilder<M,F>> List<B> mutateAll(Collection<M> messages) { if (messages == null) { return null; } return (List<B>) messages.stream() .map(PMessage::mutate) .collect(Collectors.toList()); }  }
MessageStoreUtils { @SuppressWarnings("unchecked") public static <M extends PMessage<M,F>, F extends PField, B extends PMessageBuilder<M,F>> List<B> mutateAll(Collection<M> messages) { if (messages == null) { return null; } return (List<B>) messages.stream() .map(PMessage::mutate) .collect(Collectors.toList()); }  static List<M> buildAll(Collection<B> builders); @SuppressWarnings("unchecked") static List<B> mutateAll(Collection<M> messages); static M buildIfNotNull(B builder); @SuppressWarnings("unchecked") static B mutateIfNotNull(M message); }
MessageStoreUtils { @SuppressWarnings("unchecked") public static <M extends PMessage<M,F>, F extends PField, B extends PMessageBuilder<M,F>> List<B> mutateAll(Collection<M> messages) { if (messages == null) { return null; } return (List<B>) messages.stream() .map(PMessage::mutate) .collect(Collectors.toList()); }  static List<M> buildAll(Collection<B> builders); @SuppressWarnings("unchecked") static List<B> mutateAll(Collection<M> messages); static M buildIfNotNull(B builder); @SuppressWarnings("unchecked") static B mutateIfNotNull(M message);  }