Interface SetCoverProto.SubsetOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SetCoverProto.Subset, SetCoverProto.Subset.Builder
Enclosing class:
SetCoverProto

public static interface SetCoverProto.SubsetOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    The cost for using the given subset.
    int
    getElement(int index)
    The list of elements in the subset.
    int
    The list of elements in the subset.
    The list of elements in the subset.
    boolean
    The cost for using the given subset.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasCost

      boolean hasCost()
       The cost for using the given subset.
       
      optional double cost = 1;
      Returns:
      Whether the cost field is set.
    • getCost

      double getCost()
       The cost for using the given subset.
       
      optional double cost = 1;
      Returns:
      The cost.
    • getElementList

      List<Integer> getElementList()
       The list of elements in the subset.
       
      repeated int32 element = 2 [packed = true];
      Returns:
      A list containing the element.
    • getElementCount

      int getElementCount()
       The list of elements in the subset.
       
      repeated int32 element = 2 [packed = true];
      Returns:
      The count of element.
    • getElement

      int getElement(int index)
       The list of elements in the subset.
       
      repeated int32 element = 2 [packed = true];
      Parameters:
      index - The index of the element to return.
      Returns:
      The element at the given index.