Interface Weights.Bool

  • All Superinterfaces:
    Weights<Boolean>
    Enclosing interface:
    Weights<W>

    public static interface Weights.Bool
    extends Weights<Boolean>
    Specific weights of primitive type boolean.
    Author:
    Barak Ugav
    • Method Detail

      • getBool

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

        @Deprecated
        default Boolean get​(int id)
        Deprecated.
        Description copied from interface: Weights
        Get the weight associated with the given id.
        Specified by:
        get in interface Weights<Boolean>
        Parameters:
        id - an id of edge/vertex
        Returns:
        the weight associated with the given id
      • set

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

        @Deprecated
        default void set​(int id,
                         Boolean weight)
        Deprecated.
        Description copied from interface: Weights
        Set the weight associated with the given id.
        Specified by:
        set in interface Weights<Boolean>
        Parameters:
        id - an id of edge/vertex
        weight - new weight that will be associated with the given id
      • defaultWeightBool

        boolean defaultWeightBool()
        Get the default weight of this weights container.

        The default weight is the weight associated with all ids that were not explicitly set using set(int, boolean).

        Returns:
        the default weight of this weights container.
      • defaultWeight

        @Deprecated
        default Boolean defaultWeight()
        Deprecated.
        Description copied from interface: Weights
        Get the default weight of this weights container.

        The default weight is the weight associated with all ids that were not explicitly set using Weights.set(int, Object).

        Specified by:
        defaultWeight in interface Weights<Boolean>
        Returns:
        the default weight of this weights container.