@Test public void testGetAllProtocolGroups() { Map<String, Set<String>> groups = getGroupings(); assertThat( groups.keySet(), equalTo( ImmutableSet.of( RoutingProtocolSpecifier.ALL, RoutingProtocolSpecifier.BGP, RoutingProtocolSpecifier.EIGRP, RoutingProtocolSpecifier.IGP, RoutingProtocolSpecifier.ISIS, RoutingProtocolSpecifier.OSPF, RoutingProtocolSpecifier.OSPF_EXT, RoutingProtocolSpecifier.OSPF_INT))); }
@JsonIgnore public static Map<String, Set<String>> getGroupings() { return MAP.keySet().stream() .filter(p -> !ATOMIC_VALUES.contains(p)) .collect(ImmutableMap.toImmutableMap(p -> p, RoutingProtocolSpecifier::getContainedAtoms)); }
RoutingProtocolSpecifier { @JsonIgnore public static Map<String, Set<String>> getGroupings() { return MAP.keySet().stream() .filter(p -> !ATOMIC_VALUES.contains(p)) .collect(ImmutableMap.toImmutableMap(p -> p, RoutingProtocolSpecifier::getContainedAtoms)); } }
RoutingProtocolSpecifier { @JsonIgnore public static Map<String, Set<String>> getGroupings() { return MAP.keySet().stream() .filter(p -> !ATOMIC_VALUES.contains(p)) .collect(ImmutableMap.toImmutableMap(p -> p, RoutingProtocolSpecifier::getContainedAtoms)); } RoutingProtocolSpecifier(String text); }
RoutingProtocolSpecifier { @JsonIgnore public static Map<String, Set<String>> getGroupings() { return MAP.keySet().stream() .filter(p -> !ATOMIC_VALUES.contains(p)) .collect(ImmutableMap.toImmutableMap(p -> p, RoutingProtocolSpecifier::getContainedAtoms)); } RoutingProtocolSpecifier(String text); @JsonValue @Nonnull String value(); @JsonIgnore static Set<String> getAllProtocolKeys(); @JsonIgnore static Set<String> getAtomicProtocols(); @JsonIgnore static Map<String, Set<String>> getGroupings(); Set<RoutingProtocol> getProtocols(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
RoutingProtocolSpecifier { @JsonIgnore public static Map<String, Set<String>> getGroupings() { return MAP.keySet().stream() .filter(p -> !ATOMIC_VALUES.contains(p)) .collect(ImmutableMap.toImmutableMap(p -> p, RoutingProtocolSpecifier::getContainedAtoms)); } RoutingProtocolSpecifier(String text); @JsonValue @Nonnull String value(); @JsonIgnore static Set<String> getAllProtocolKeys(); @JsonIgnore static Set<String> getAtomicProtocols(); @JsonIgnore static Map<String, Set<String>> getGroupings(); Set<RoutingProtocol> getProtocols(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String ALL; static final String AGGREGATE; static final String BGP; static final String CONNECTED; static final String EBGP; static final String EIGRP; static final String EIGRP_EXT; static final String EIGRP_INT; static final String IBGP; static final String IGP; static final String ISIS; static final String ISIS_L1; static final String ISIS_L2; static final String ISIS_EL1; static final String ISIS_EL2; static final String LOCAL; static final String OSPF; static final String OSPF_EXT; static final String OSPF_EXT1; static final String OSPF_EXT2; static final String OSPF_INT; static final String OSPF_INTER; static final String OSPF_INTRA; static final String RIP; static final String STATIC; static final RoutingProtocolSpecifier ALL_PROTOCOLS_SPECIFIER; }