Class CountState
- java.lang.Object
-
- com.g2forge.alexandria.java.nestedstate.CountState
-
- All Implemented Interfaces:
IFunctional
,IRunnable
,ISupplier<Integer>
,IThrowRunnable<RuntimeException>
,INestedState<Integer>
,Runnable
,Supplier<Integer>
public class CountState extends Object implements INestedState<Integer>
-
-
Field Summary
Fields Modifier and Type Field Description protected int
nesting
-
Constructor Summary
Constructors Constructor Description CountState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close(int expected, int previous)
Integer
get()
ICloseable
open(Integer value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.g2forge.alexandria.java.function.ISupplier
run, toFunction, wrap
-
-
-
-
Method Detail
-
close
protected void close(int expected, int previous)
-
open
public ICloseable open(Integer value)
- Specified by:
open
in interfaceINestedState<Integer>
-
-