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

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

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

origin: batfish/batfish

    .map(fgb -> fgb.toFilterGroup())
    .collect(Collectors.toList()))
.setInterfaceGroups(
  firstNonNull(interfaceGroups, Collections.<InterfaceGroupBean>emptySet()).stream()
    .map(igb -> igb.toInterfaceGroup())
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());
 }
}
origin: batfish/batfish

.setInterfaceGroups(
  ImmutableList.of(
    new InterfaceGroup(
org.batfish.referencelibraryReferenceBook$BuildersetInterfaceGroups

Popular methods of ReferenceBook$Builder

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

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top plugins for WebStorm
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