Class IntObjective.Builder

  • Enclosing class:
    IntObjective

    public static final class IntObjective.Builder
    extends Object
    An IntObjective builder.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withSelector

        public IntObjective.Builder withSelector​(TrafficSelector selector)
        Assigns a selector to the IntObjective.
        Parameters:
        selector - a traffic selector
        Returns:
        an IntObjective builder
      • withMetadataTypes

        public IntObjective.Builder withMetadataTypes​(Set<IntMetadataType> metadataTypes)
        Add a metadata type to the IntObjective.
        Parameters:
        metadataTypes - a set of metadata types
        Returns:
        an IntObjective builder
      • build

        public IntObjective build()
        Builds the IntObjective.
        Returns:
        an IntObjective