@Test public void testOrElseChainEmpty() { assertThat(orElseChain(ImmutableList.of()), nullValue()); }
public static @Nullable Transformation orElseChain( Iterable<SimpleTransformation> simpleTransformations) { Transformation current = null; for (SimpleTransformation earlier : simpleTransformations) { current = Transformation.when(earlier.getGuard()) .apply(earlier.getStep()) .setOrElse(current) .build(); } return current; }
F5NatUtil { public static @Nullable Transformation orElseChain( Iterable<SimpleTransformation> simpleTransformations) { Transformation current = null; for (SimpleTransformation earlier : simpleTransformations) { current = Transformation.when(earlier.getGuard()) .apply(earlier.getStep()) .setOrElse(current) .build(); } return current; } }
F5NatUtil { public static @Nullable Transformation orElseChain( Iterable<SimpleTransformation> simpleTransformations) { Transformation current = null; for (SimpleTransformation earlier : simpleTransformations) { current = Transformation.when(earlier.getGuard()) .apply(earlier.getStep()) .setOrElse(current) .build(); } return current; } private  F5NatUtil(); }
F5NatUtil { public static @Nullable Transformation orElseChain( Iterable<SimpleTransformation> simpleTransformations) { Transformation current = null; for (SimpleTransformation earlier : simpleTransformations) { current = Transformation.when(earlier.getGuard()) .apply(earlier.getStep()) .setOrElse(current) .build(); } return current; } private  F5NatUtil(); static @Nullable Transformation orElseChain(
      Iterable<SimpleTransformation> simpleTransformations); }
F5NatUtil { public static @Nullable Transformation orElseChain( Iterable<SimpleTransformation> simpleTransformations) { Transformation current = null; for (SimpleTransformation earlier : simpleTransformations) { current = Transformation.when(earlier.getGuard()) .apply(earlier.getStep()) .setOrElse(current) .build(); } return current; } private  F5NatUtil(); static @Nullable Transformation orElseChain(
      Iterable<SimpleTransformation> simpleTransformations);  }