Package com.jgalgo.graph
Interface IWeightsBool
-
public interface IWeightsBool extends IWeights<Boolean>, WeightsBool<Integer>
Specific weights ofbooleanfor int graphs.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description booleanget(int element)Get the weight associated with the given element.default booleanget(Integer element)Deprecated.Please useget(int)instead to avoid un/boxing.default BooleangetAsObj(int element)Deprecated.Please useget(int)instead to avoid un/boxing.default BooleangetAsObj(Integer element)Deprecated.Please useget(int)instead to avoid un/boxing.voidset(int element, boolean weight)Set the weight associated with the given element.default voidset(Integer element, boolean weight)Deprecated.Please useset(int, boolean)instead to avoid un/boxing.default voidsetAsObj(int element, Boolean weight)Deprecated.Please useset(int, boolean)instead to avoid un/boxing.default voidsetAsObj(Integer element, Boolean weight)Deprecated.Please useset(int, boolean)instead to avoid un/boxing.-
Methods inherited from interface com.jgalgo.graph.WeightsBool
defaultWeight, defaultWeightAsObj
-
-
-
-
Method Detail
-
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 useget(int)instead to avoid un/boxing.Get the weight associated with the given element.- Specified by:
getin interfaceWeightsBool<Integer>- Parameters:
element- an element (edge/vertex).- Returns:
- the weight associated with the given element.
-
getAsObj
@Deprecated default Boolean getAsObj(int element)
Deprecated.Please useget(int)instead to avoid un/boxing.Get the weight associated with the given id.
-
getAsObj
@Deprecated default Boolean getAsObj(Integer element)
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 default void set(Integer element, boolean weight)
Deprecated.Please useset(int, boolean)instead to avoid un/boxing.Set the weight associated with the given element.- Specified by:
setin interfaceWeightsBool<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 useset(int, boolean)instead to avoid un/boxing.Set the weight associated with the given id.
-
setAsObj
@Deprecated default void setAsObj(Integer element, Boolean weight)
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.
-
-