java.lang.Object
ushiosan.jvm.accumulator.UFileSizeAccumulator
- All Implemented Interfaces:
UAccumulator<Long,Long>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPush more content to the current accumulatorvoidPush more content to the current accumulatorvoidPush more content to the current accumulatorvoidPush more content to the current accumulatorvoidpushAll(@NotNull UAccumulator<Long, Long> other) Adds the result of other accumulators with the same typeresult()Gets the result of accumulated content
-
Constructor Details
-
UFileSizeAccumulator
public UFileSizeAccumulator()
-
-
Method Details
-
result
Gets the result of accumulated content- Specified by:
resultin interfaceUAccumulator<Long,Long> - Returns:
- all accumulated content
-
push
Push more content to the current accumulator- Specified by:
pushin interfaceUAccumulator<Long,Long> - Parameters:
item- The item you want to accumulate
-
pushAll
Adds the result of other accumulators with the same type- Specified by:
pushAllin interfaceUAccumulator<Long,Long> - Parameters:
other- another accumulator
-
push
Push more content to the current accumulator- Parameters:
file- The item you want to accumulate
-
push
Push more content to the current accumulator- Parameters:
path- The item you want to accumulate
-
push
Push more content to the current accumulator- Parameters:
entry- The item you want to accumulate
-