Class FingerTree.Empty<T,S>
java.lang.Object
org.reactfx.util.FingerTree<T,S>
org.reactfx.util.FingerTree.Empty<T,S>
- Enclosing class:
FingerTree<T,S>
-
Nested Class Summary
Nested classes/interfaces inherited from class FingerTree
FingerTree.NonEmptyFingerTree<T,S> -
Field Summary
Fields inherited from class FingerTree
semigroup -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasList()Returns a list view of this tree.<R> Rfold(R acc, BiFunction<? super R, ? super T, ? extends R> reduction) (package private) <R> RfoldBetween0(R acc, BiFunction<? super R, ? super T, ? extends R> reduction, int startLeaf, int endLeaf) (package private) <R> RfoldBetween0(R acc, BiFunction<? super R, ? super T, ? extends R> reduction, ToIntFunction<? super S> metric, int startPosition, int endPosition, TetraFunction<? super R, ? super T, Integer, Integer, ? extends R> rangeReduction) (package private) TgetData()intgetDepth()(package private) TgetLeaf0(int index) int(package private) SgetSummaryBetween0(int startLeaf, int endLeaf) (package private) SgetSummaryBetween0(ToIntFunction<? super S> metric, int startPosition, int endPosition, TriFunction<? super T, Integer, Integer, ? extends S> subSummary) FingerTree<T, S> join(FingerTree<T, S> rightTree) (package private) Tuple2<FingerTree<T, S>, FingerTree<T, S>> split0(int beforeLeaf) toString()(package private) FingerTree.NonEmptyFingerTree<T, S> updateLeaf0(int index, T data) Methods inherited from class FingerTree
append, empty, empty, foldBetween, foldBetween, get, get, getLeaf, getSummary, getSummaryBetween, getSummaryBetween, insertLeaf, isEmpty, leaf, locate, locateProgressively, locateRegressively, measure, mkTree, mkTree, prepend, removeLeafs, split, updateLeaf
-
Constructor Details
-
Empty
Empty(ToSemigroup<? super T, S> semigroup)
-
-
Method Details
-
toString
-
caseEmpty
- Specified by:
caseEmptyin classFingerTree<T,S>
-
getDepth
public int getDepth()- Specified by:
getDepthin classFingerTree<T,S>
-
getLeafCount
public int getLeafCount()- Specified by:
getLeafCountin classFingerTree<T,S>
-
join
- Specified by:
joinin classFingerTree<T,S>
-
asList
Description copied from class:FingerTreeReturns a list view of this tree. Complexity of operations on the returned list:size(): O(1);get: O(log(n));- iteration: O(n) in either direction, with O(log(n)) total allocations;
subList: O(log(n));- iterative
subList, i.e. callingsubListon the result of previoussubList, up to n times: O(n).
- Specified by:
asListin classFingerTree<T,S>
-
getLeaf0
- Specified by:
getLeaf0in classFingerTree<T,S>
-
updateLeaf0
- Specified by:
updateLeaf0in classFingerTree<T,S>
-
getData
T getData()- Specified by:
getDatain classFingerTree<T,S>
-
getSummaryOpt
- Specified by:
getSummaryOptin classFingerTree<T,S>
-
fold
- Specified by:
foldin classFingerTree<T,S>
-
foldBetween0
<R> R foldBetween0(R acc, BiFunction<? super R, ? super T, ? extends R> reduction, int startLeaf, int endLeaf) - Specified by:
foldBetween0in classFingerTree<T,S>
-
foldBetween0
<R> R foldBetween0(R acc, BiFunction<? super R, ? super T, ? extends R> reduction, ToIntFunction<? super S> metric, int startPosition, int endPosition, TetraFunction<? super R, ? super T, Integer, Integer, ? extends R> rangeReduction) - Specified by:
foldBetween0in classFingerTree<T,S>
-
getSummaryBetween0
- Specified by:
getSummaryBetween0in classFingerTree<T,S>
-
getSummaryBetween0
S getSummaryBetween0(ToIntFunction<? super S> metric, int startPosition, int endPosition, TriFunction<? super T, Integer, Integer, ? extends S> subSummary) - Specified by:
getSummaryBetween0in classFingerTree<T,S>
-
split0
- Specified by:
split0in classFingerTree<T,S>
-