@Test public void testGetApplicationSpecifierOrDefault() { assertThat( SpecifierFactories.getApplicationSpecifierOrDefault( "", NoApplicationsApplicationSpecifier.INSTANCE) .resolve(), equalTo(ImmutableSet.of())); assertThat( SpecifierFactories.getApplicationSpecifierOrDefault( "http", NoApplicationsApplicationSpecifier.INSTANCE) .resolve(), equalTo(ImmutableSet.of(NamedApplication.HTTP.getApplication()))); }
public static ApplicationSpecifier getApplicationSpecifierOrDefault( @Nullable String input, ApplicationSpecifier defaultSpecifier) { return getApplicationSpecifierOrDefault(input, defaultSpecifier, ACTIVE_VERSION); }
SpecifierFactories { public static ApplicationSpecifier getApplicationSpecifierOrDefault( @Nullable String input, ApplicationSpecifier defaultSpecifier) { return getApplicationSpecifierOrDefault(input, defaultSpecifier, ACTIVE_VERSION); } }
SpecifierFactories { public static ApplicationSpecifier getApplicationSpecifierOrDefault( @Nullable String input, ApplicationSpecifier defaultSpecifier) { return getApplicationSpecifierOrDefault(input, defaultSpecifier, ACTIVE_VERSION); } private  SpecifierFactories(); }
SpecifierFactories { public static ApplicationSpecifier getApplicationSpecifierOrDefault( @Nullable String input, ApplicationSpecifier defaultSpecifier) { return getApplicationSpecifierOrDefault(input, defaultSpecifier, ACTIVE_VERSION); } private  SpecifierFactories(); static ApplicationSpecifier getApplicationSpecifier(String input, Version version); static FilterSpecifier getFilterSpecifier(String input, Version version); static InterfaceSpecifier getInterfaceSpecifier(String input, Version version); static IpProtocolSpecifier getIpProtocolSpecifier(String input, Version version); static IpSpaceSpecifier getIpSpaceSpecifier(String input, Version version); static LocationSpecifier getLocationSpecifier(String input, Version version); static EnumSetSpecifier<T> getEnumSetSpecifier(
      String input, Grammar grammar, Version version); static NameSetSpecifier getNameSetSpecifier(
      String input, Grammar grammar, Version version); static NodeSpecifier getNodeSpecifier(String input, Version version); static RoutingPolicySpecifier getRoutingPolicySpecifier(String input, Version version); static ApplicationSpecifier getApplicationSpecifierOrDefault(
      @Nullable String input, ApplicationSpecifier defaultSpecifier); static FilterSpecifier getFilterSpecifierOrDefault(
      @Nullable String input, FilterSpecifier defaultSpecifier); static InterfaceSpecifier getInterfaceSpecifierOrDefault(
      @Nullable String input, InterfaceSpecifier defaultSpecifier); static IpProtocolSpecifier getIpProtocolSpecifierOrDefault(
      @Nullable String input, IpProtocolSpecifier defaultSpecifier); static IpSpaceSpecifier getIpSpaceSpecifierOrDefault(
      @Nullable String input, IpSpaceSpecifier defaultSpecifier); static LocationSpecifier getLocationSpecifierOrDefault(
      @Nullable String input, LocationSpecifier defaultSpecifier); static EnumSetSpecifier<T> getEnumSetSpecifierOrDefault(
      @Nullable String input, Grammar grammar, EnumSetSpecifier<T> defaultSpecifier); static NameSetSpecifier getNameSetSpecifierOrDefault(
      @Nullable String input, Grammar grammar, NameSetSpecifier defaultSpecifier); static NodeSpecifier getNodeSpecifierOrDefault(
      @Nullable String input, NodeSpecifier defaultSpecifier); static RoutingPolicySpecifier getRoutingPolicySpecifierOrDefault(
      @Nullable String input, RoutingPolicySpecifier defaultSpecifier); static ApplicationSpecifier getApplicationSpecifierOrDefault(
      @Nullable String input, ApplicationSpecifier defaultSpecifier, Version v); static FilterSpecifier getFilterSpecifierOrDefault(
      @Nullable String input, FilterSpecifier defaultSpecifier, Version v); static InterfaceSpecifier getInterfaceSpecifierOrDefault(
      @Nullable String input, InterfaceSpecifier defaultSpecifier, Version v); static IpProtocolSpecifier getIpProtocolSpecifierOrDefault(
      @Nullable String input, IpProtocolSpecifier defaultSpecifier, Version v); static IpSpaceSpecifier getIpSpaceSpecifierOrDefault(
      @Nullable String input, IpSpaceSpecifier defaultSpecifier, Version v); static LocationSpecifier getLocationSpecifierOrDefault(
      @Nullable String input, LocationSpecifier defaultSpecifier, Version v); static EnumSetSpecifier<T> getEnumSetSpecifierOrDefault(
      @Nullable String input, Grammar grammar, EnumSetSpecifier<T> defaultSpecifier, Version v); static NameSetSpecifier getNameSetSpecifierOrDefault(
      @Nullable String input, Grammar grammar, NameSetSpecifier defaultSpecifier, Version v); static NodeSpecifier getNodeSpecifierOrDefault(
      @Nullable String input, NodeSpecifier defaultSpecifier, Version v); static RoutingPolicySpecifier getRoutingPolicySpecifierOrDefault(
      @Nullable String input, RoutingPolicySpecifier defaultSpecifier, Version v); }
SpecifierFactories { public static ApplicationSpecifier getApplicationSpecifierOrDefault( @Nullable String input, ApplicationSpecifier defaultSpecifier) { return getApplicationSpecifierOrDefault(input, defaultSpecifier, ACTIVE_VERSION); } private  SpecifierFactories(); static ApplicationSpecifier getApplicationSpecifier(String input, Version version); static FilterSpecifier getFilterSpecifier(String input, Version version); static InterfaceSpecifier getInterfaceSpecifier(String input, Version version); static IpProtocolSpecifier getIpProtocolSpecifier(String input, Version version); static IpSpaceSpecifier getIpSpaceSpecifier(String input, Version version); static LocationSpecifier getLocationSpecifier(String input, Version version); static EnumSetSpecifier<T> getEnumSetSpecifier(
      String input, Grammar grammar, Version version); static NameSetSpecifier getNameSetSpecifier(
      String input, Grammar grammar, Version version); static NodeSpecifier getNodeSpecifier(String input, Version version); static RoutingPolicySpecifier getRoutingPolicySpecifier(String input, Version version); static ApplicationSpecifier getApplicationSpecifierOrDefault(
      @Nullable String input, ApplicationSpecifier defaultSpecifier); static FilterSpecifier getFilterSpecifierOrDefault(
      @Nullable String input, FilterSpecifier defaultSpecifier); static InterfaceSpecifier getInterfaceSpecifierOrDefault(
      @Nullable String input, InterfaceSpecifier defaultSpecifier); static IpProtocolSpecifier getIpProtocolSpecifierOrDefault(
      @Nullable String input, IpProtocolSpecifier defaultSpecifier); static IpSpaceSpecifier getIpSpaceSpecifierOrDefault(
      @Nullable String input, IpSpaceSpecifier defaultSpecifier); static LocationSpecifier getLocationSpecifierOrDefault(
      @Nullable String input, LocationSpecifier defaultSpecifier); static EnumSetSpecifier<T> getEnumSetSpecifierOrDefault(
      @Nullable String input, Grammar grammar, EnumSetSpecifier<T> defaultSpecifier); static NameSetSpecifier getNameSetSpecifierOrDefault(
      @Nullable String input, Grammar grammar, NameSetSpecifier defaultSpecifier); static NodeSpecifier getNodeSpecifierOrDefault(
      @Nullable String input, NodeSpecifier defaultSpecifier); static RoutingPolicySpecifier getRoutingPolicySpecifierOrDefault(
      @Nullable String input, RoutingPolicySpecifier defaultSpecifier); static ApplicationSpecifier getApplicationSpecifierOrDefault(
      @Nullable String input, ApplicationSpecifier defaultSpecifier, Version v); static FilterSpecifier getFilterSpecifierOrDefault(
      @Nullable String input, FilterSpecifier defaultSpecifier, Version v); static InterfaceSpecifier getInterfaceSpecifierOrDefault(
      @Nullable String input, InterfaceSpecifier defaultSpecifier, Version v); static IpProtocolSpecifier getIpProtocolSpecifierOrDefault(
      @Nullable String input, IpProtocolSpecifier defaultSpecifier, Version v); static IpSpaceSpecifier getIpSpaceSpecifierOrDefault(
      @Nullable String input, IpSpaceSpecifier defaultSpecifier, Version v); static LocationSpecifier getLocationSpecifierOrDefault(
      @Nullable String input, LocationSpecifier defaultSpecifier, Version v); static EnumSetSpecifier<T> getEnumSetSpecifierOrDefault(
      @Nullable String input, Grammar grammar, EnumSetSpecifier<T> defaultSpecifier, Version v); static NameSetSpecifier getNameSetSpecifierOrDefault(
      @Nullable String input, Grammar grammar, NameSetSpecifier defaultSpecifier, Version v); static NodeSpecifier getNodeSpecifierOrDefault(
      @Nullable String input, NodeSpecifier defaultSpecifier, Version v); static RoutingPolicySpecifier getRoutingPolicySpecifierOrDefault(
      @Nullable String input, RoutingPolicySpecifier defaultSpecifier, Version v); static final Version ACTIVE_VERSION; }