Interface IWeightsBool

All Superinterfaces:
IWeights<Boolean>, Weights<Integer,Boolean>, WeightsBool<Integer>

public interface IWeightsBool extends IWeights<Boolean>, WeightsBool<Integer>
Specific weights of boolean for int graphs.
Author:
Barak Ugav
  • Method Details

    • get

      boolean get(int element)
      Get the weight associated with the given element.
      Parameters:
      element - an element (edge/vertex.)
      Returns:
      the weight associated with the given element.
    • get

      @Deprecated default boolean get(Integer element)
      Deprecated.
      Please use get(int) instead to avoid un/boxing.
      Get the weight associated with the given element.
      Specified by:
      get in interface WeightsBool<Integer>
      Parameters:
      element - an element (edge/vertex).
      Returns:
      the weight associated with the given element.
    • getAsObj

      @Deprecated default Boolean getAsObj(int element)
      Deprecated.
      Please use get(int) instead to avoid un/boxing.
      Get the weight associated with the given id.
      Specified by:
      getAsObj in interface IWeights<Boolean>
      Parameters:
      element - an id of edge/vertex
      Returns:
      the weight associated with the given id
    • getAsObj

      @Deprecated default Boolean getAsObj(Integer element)
      Deprecated.
      Please use get(int) instead to avoid un/boxing.
      Get the weight associated with the given element.

      This method return the weight as an object, and should not be used when its known what type the weights are.

      Specified by:
      getAsObj in interface IWeights<Boolean>
      Specified by:
      getAsObj in interface Weights<Integer,Boolean>
      Specified by:
      getAsObj in interface WeightsBool<Integer>
      Parameters:
      element - an element (edge/vertex)
      Returns:
      the weight associated with the given element
    • set

      void set(int element, boolean weight)
      Set the weight associated with the given element.
      Parameters:
      element - an element (edge/vertex)
      weight - new weight that will be associated with the given element
    • set

      @Deprecated default void set(Integer element, boolean weight)
      Deprecated.
      Please use set(int, boolean) instead to avoid un/boxing.
      Set the weight associated with the given element.
      Specified by:
      set in interface WeightsBool<Integer>
      Parameters:
      element - an element (edge/vertex).
      weight - new weight that will be associated with the given element
    • setAsObj

      @Deprecated default void setAsObj(int element, Boolean weight)
      Deprecated.
      Please use set(int, boolean) instead to avoid un/boxing.
      Set the weight associated with the given id.
      Specified by:
      setAsObj in interface IWeights<Boolean>
      Parameters:
      element - an id of edge/vertex
      weight - new weight that will be associated with the given id
    • setAsObj

      @Deprecated default void setAsObj(Integer element, Boolean weight)
      Deprecated.
      Please use set(int, boolean) instead to avoid un/boxing.
      Set the weight associated with the given element.

      This method accept the weight as an object, and should not be used when its known what type the weights are.

      Specified by:
      setAsObj in interface IWeights<Boolean>
      Specified by:
      setAsObj in interface Weights<Integer,Boolean>
      Specified by:
      setAsObj in interface WeightsBool<Integer>
      Parameters:
      element - an element (edge/vertex)
      weight - new weight that will be associated with the given element