Class WeightedSelectorMutableBase<T>
java.lang.Object
org.aksw.commons.collections.selector.WeightedSelectorMutableBase<T>
- All Implemented Interfaces:
Cloneable,WeightedSelector<T>
- Direct Known Subclasses:
WeightedSelectorMutable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract WeightedSelectorMutableBase<T>clone()Cloning mechanism to allow simple implementation of backtracking.Collection<Map.Entry<T,? extends Number>> entries()static doubleeps(double d) voidvoidvoidputAll(Collection<? extends Map.Entry<T, ? extends Number>> items) booleanMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.collections.selector.WeightedSelector
entryMap, isEmpty, sample
-
Field Details
-
entries
-
nextOffset
protected double nextOffset
-
-
Constructor Details
-
WeightedSelectorMutableBase
public WeightedSelectorMutableBase() -
WeightedSelectorMutableBase
-
-
Method Details
-
clone
Description copied from interface:WeightedSelectorCloning mechanism to allow simple implementation of backtracking.- Specified by:
clonein interfaceWeightedSelector<T>- Overrides:
clonein classObject- Returns:
-
eps
public static double eps(double d) -
sampleEntryWithIndex
-
sampleEntry
- Specified by:
sampleEntryin interfaceWeightedSelector<T>
-
entries
- Specified by:
entriesin interfaceWeightedSelector<T>
-
put
-
put
-
putAll
-
remove
-