Package com.jgalgo.graph
Interface Weights.Bool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jgalgo.graph.Weights
Weights.Bool, Weights.Byte, Weights.Char, Weights.Double, Weights.Float, Weights.Int, Weights.Long, Weights.Short
-
-
Field Summary
-
Fields inherited from interface com.jgalgo.graph.Weights
DefaultBipartiteWeightKey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default BooleandefaultWeight()Deprecated.booleandefaultWeightBool()Get the default weight of this weights container.default Booleanget(int id)Deprecated.booleangetBool(int id)Get the weight associated with the given id.voidset(int id, boolean weight)Set the weight associated with the given id.default voidset(int id, Boolean weight)Deprecated.
-
-
-
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:WeightsGet 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/vertexweight- new weight that will be associated with the given id
-
set
@Deprecated default void set(int id, Boolean weight)
Deprecated.Description copied from interface:WeightsSet the weight 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:WeightsGet 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:
defaultWeightin interfaceWeights<Boolean>- Returns:
- the default weight of this weights container.
-
-