@Test public void testNonEmpty() { EntityGraph fooGraph = EntityGraphs.named("foo"); assertThat(OptionalEntityGraph.of(fooGraph)).contains(fooGraph); }
public static Optional<EntityGraph> of(EntityGraph entityGraph) { if (EntityGraphs.isEmpty(entityGraph)) { return Optional.empty(); } return Optional.of(entityGraph); }
OptionalEntityGraph { public static Optional<EntityGraph> of(EntityGraph entityGraph) { if (EntityGraphs.isEmpty(entityGraph)) { return Optional.empty(); } return Optional.of(entityGraph); } }
OptionalEntityGraph { public static Optional<EntityGraph> of(EntityGraph entityGraph) { if (EntityGraphs.isEmpty(entityGraph)) { return Optional.empty(); } return Optional.of(entityGraph); }  }
OptionalEntityGraph { public static Optional<EntityGraph> of(EntityGraph entityGraph) { if (EntityGraphs.isEmpty(entityGraph)) { return Optional.empty(); } return Optional.of(entityGraph); }  static Optional<EntityGraph> of(EntityGraph entityGraph); }
OptionalEntityGraph { public static Optional<EntityGraph> of(EntityGraph entityGraph) { if (EntityGraphs.isEmpty(entityGraph)) { return Optional.empty(); } return Optional.of(entityGraph); }  static Optional<EntityGraph> of(EntityGraph entityGraph);  }