Tabnine Logo
ReferenceBook$Builder.setFilterGroups
Code IndexAdd Tabnine to your IDE (free)

How to use
setFilterGroups
method
in
org.batfish.referencelibrary.ReferenceBook$Builder

Best Java code snippets using org.batfish.referencelibrary.ReferenceBook$Builder.setFilterGroups (Showing top 3 results out of 315)

origin: batfish/batfish

    .map(agb -> agb.toAddressGroup())
    .collect(Collectors.toList()))
.setFilterGroups(
  firstNonNull(filterGroups, Collections.<FilterGroupBean>emptySet()).stream()
    .map(fgb -> fgb.toFilterGroup())
origin: batfish/batfish

@Test
public void constructorNonEmptyBook() {
 ReferenceBook book2 =
   ReferenceBook.builder("book2")
     .setAddressGroups(ImmutableList.of(new AddressGroup(ImmutableSortedSet.of(), "ag1")))
     .setFilterGroups(ImmutableList.of(new FilterGroup(ImmutableList.of(), "fg1")))
     .setInterfaceGroups(
       ImmutableList.of(new InterfaceGroup(ImmutableSortedSet.of(), "ig1")))
     .setServiceEndpoints(ImmutableList.of(new ServiceEndpoint("ag1", "se1", "so1")))
     .setServiceObjectGroups(
       ImmutableList.of(new ServiceObjectGroup("sog1", ImmutableSortedSet.of())))
     .setServiceObjects(
       ImmutableList.of(new ServiceObject(IpProtocol.TCP, "so1", new SubRange(2, 3))))
     .build();
 beanBookMatch(new ReferenceBookBean(book2), book2);
}
origin: batfish/batfish

 @Test
 public void toAddressBook() {
  ReferenceBookBean bean =
    new ReferenceBookBean(
      ReferenceBook.builder("book2")
        .setAddressGroups(
          ImmutableList.of(new AddressGroup(ImmutableSortedSet.of(), "ag1")))
        .setFilterGroups(ImmutableList.of(new FilterGroup(ImmutableList.of(), "fg1")))
        .setInterfaceGroups(
          ImmutableList.of(new InterfaceGroup(ImmutableSortedSet.of(), "ig1")))
        .setServiceEndpoints(ImmutableList.of(new ServiceEndpoint("ag1", "se1", "so1")))
        .setServiceObjectGroups(
          ImmutableList.of(new ServiceObjectGroup("sog1", ImmutableSortedSet.of())))
        .setServiceObjects(
          ImmutableList.of(new ServiceObject(IpProtocol.TCP, "so1", new SubRange(2, 3))))
        .build());

  beanBookMatch(bean, bean.toAddressBook());
 }
}
org.batfish.referencelibraryReferenceBook$BuildersetFilterGroups

Popular methods of ReferenceBook$Builder

  • build
  • setAddressGroups
  • setInterfaceGroups
  • setServiceEndpoints
  • setServiceObjectGroups
  • setServiceObjects
  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Path (java.nio.file)
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • BoxLayout (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now