Package com.jgalgo.graph
Interface WeightsBool<K>
-
- All Known Subinterfaces:
IWeightsBool
public interface WeightsBool<K> extends Weights<K,Boolean>
Specific weights ofboolean
.- Author:
- Barak Ugav
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description boolean
defaultWeight()
Get the default weight of this weights container.default Boolean
defaultWeightAsObj()
Deprecated.boolean
get(K element)
Get the weight associated with the given element.default Boolean
getAsObj(K element)
Deprecated.void
set(K element, boolean weight)
Set the weight associated with the given element.default void
setAsObj(K element, Boolean weight)
Deprecated.
-
-
-
Method Detail
-
get
boolean get(K element)
Get the weight associated with the given element.- Parameters:
element
- an element (edge/vertex).- Returns:
- the weight associated with the given element.
-
getAsObj
@Deprecated default Boolean getAsObj(K element)
Deprecated.Description copied from interface:Weights
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(K 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
-
setAsObj
@Deprecated default void setAsObj(K element, Boolean weight)
Deprecated.Description copied from interface:Weights
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.
-
defaultWeight
boolean defaultWeight()
Get the default weight of this weights container.The default weight is the weight associated with all elements that were not explicitly set using
set(Object, boolean)
.- Returns:
- the default weight of this weights container.
-
defaultWeightAsObj
@Deprecated default Boolean defaultWeightAsObj()
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. This method return the default weight as an object, and should not be used when its known what type the weights are.
- Specified by:
defaultWeightAsObj
in interfaceWeights<K,Boolean>
- Returns:
- the default weight of this weights container
-
-