Package com.jgalgo.graph
Interface IWeightsBool
Specific weights of
boolean
for int graphs.- Author:
- Barak Ugav
-
Method Summary
Modifier and TypeMethodDescriptionboolean
get
(int element) Get the weight associated with the given element.default boolean
Deprecated.default Boolean
getAsObj
(int element) Deprecated.Please useget(int)
instead to avoid un/boxing.default Boolean
Deprecated.Please useget(int)
instead to avoid un/boxing.void
set
(int element, boolean weight) Set the weight associated with the given element.default void
Deprecated.Please useset(int, boolean)
instead to avoid un/boxing.default void
Deprecated.Please useset(int, boolean)
instead to avoid un/boxing.default void
Deprecated.Please useset(int, boolean)
instead to avoid un/boxing.Methods inherited from interface com.jgalgo.graph.WeightsBool
defaultWeight, defaultWeightAsObj
-
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.Please useget(int)
instead to avoid un/boxing.Get the weight associated with the given element.- Specified by:
get
in interfaceWeightsBool<Integer>
- Parameters:
element
- an element (edge/vertex).- Returns:
- the weight associated with the given element.
-
getAsObj
Deprecated.Please useget(int)
instead to avoid un/boxing.Get the weight associated with the given id. -
getAsObj
Deprecated.Please useget(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.
-
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.Please useset(int, boolean)
instead to avoid un/boxing.Set the weight associated with the given element.- Specified by:
set
in interfaceWeightsBool<Integer>
- Parameters:
element
- an element (edge/vertex).weight
- new weight that will be associated with the given element
-
setAsObj
Deprecated.Please useset(int, boolean)
instead to avoid un/boxing.Set the weight associated with the given id. -
setAsObj
Deprecated.Please useset(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.
-
get(int)
instead to avoid un/boxing.