Index

A C D E F G I L R S T W 
All Classes and Interfaces|All Packages|Serialized Form

A

AbstractScope - Class in com.github.cowwoc.pouch.core
The default implementation of Scope.
AbstractScope() - Constructor for class com.github.cowwoc.pouch.core.AbstractScope
Creates new scope.
add(Scope) - Method in class com.github.cowwoc.pouch.core.ConcurrentChildScopes
Adds a child scope.
addChild(Scope) - Method in class com.github.cowwoc.pouch.core.AbstractScope
 
addChild(Scope) - Method in interface com.github.cowwoc.pouch.core.Scope
Adds a child scope.

C

call() - Method in interface com.github.cowwoc.pouch.core.WrappedCheckedException.UncheckedCallable
Runs the task.
children - Variable in class com.github.cowwoc.pouch.core.AbstractScope
The child scopes.
close() - Method in class com.github.cowwoc.pouch.core.ConcurrentLazyFactory
 
close() - Method in interface com.github.cowwoc.pouch.core.Factory
Disposes the Factory and the value.
close() - Method in class com.github.cowwoc.pouch.core.LazyFactory
 
close() - Method in interface com.github.cowwoc.pouch.core.Scope
 
com.github.cowwoc.pouch.core - module com.github.cowwoc.pouch.core
Core module.
com.github.cowwoc.pouch.core - package com.github.cowwoc.pouch.core
 
ConcurrentChildScopes - Class in com.github.cowwoc.pouch.core
Manages child scopes.
ConcurrentChildScopes() - Constructor for class com.github.cowwoc.pouch.core.ConcurrentChildScopes
Creates a new ConcurrentChildScopes.
ConcurrentLazyFactory<T> - Class in com.github.cowwoc.pouch.core
A thread-safe factory that initializes a value on demand.
ConcurrentLazyFactory() - Constructor for class com.github.cowwoc.pouch.core.ConcurrentLazyFactory
Creates a new instance.
ConcurrentLazyReference<T> - Class in com.github.cowwoc.pouch.core
A thread-safe reference that initializes a value on demand.
ConcurrentLazyReference() - Constructor for class com.github.cowwoc.pouch.core.ConcurrentLazyReference
Creates a new instance.
ConstantReference<T> - Class in com.github.cowwoc.pouch.core
A Reference that returns a pre-existing value.
ConstantReference(T) - Constructor for class com.github.cowwoc.pouch.core.ConstantReference
Creates a new ConstantReference.
create(Supplier<T>) - Static method in class com.github.cowwoc.pouch.core.ConcurrentLazyFactory
Creates a new ConcurrentLazyFactory that disposes its value by invoking close().
create(Supplier<T>) - Static method in class com.github.cowwoc.pouch.core.ConcurrentLazyReference
Creates a new ConcurrentLazyReference.
create(Supplier<T>) - Static method in class com.github.cowwoc.pouch.core.LazyFactory
Creates a new LazyFactory that disposes its value by invoking close().
create(Supplier<T>) - Static method in class com.github.cowwoc.pouch.core.LazyReference
Creates a new LazyReference.
create(Supplier<T>, Consumer<T>) - Static method in class com.github.cowwoc.pouch.core.ConcurrentLazyFactory
Creates a new ConcurrentLazyFactory.
create(Supplier<T>, Consumer<T>) - Static method in class com.github.cowwoc.pouch.core.LazyFactory
Creates a new LazyFactory.
createValue() - Method in class com.github.cowwoc.pouch.core.LazyFactory
Creates the value.
createValue() - Method in class com.github.cowwoc.pouch.core.LazyReference
Creates the value.
createValue() - Method in class com.github.cowwoc.pouch.core.ConcurrentLazyFactory
Creates the value.
createValue() - Method in class com.github.cowwoc.pouch.core.ConcurrentLazyReference
Creates the value.

D

disposeValue(T) - Method in class com.github.cowwoc.pouch.core.ConcurrentLazyFactory
Disposes the value.
disposeValue(T) - Method in class com.github.cowwoc.pouch.core.LazyFactory
Disposes the value.

E

ensureOpen() - Method in class com.github.cowwoc.pouch.core.AbstractScope
Ensures that the scope is open.

F

Factory<T> - Interface in com.github.cowwoc.pouch.core
Creates and destroys a value.

G

getValue() - Method in class com.github.cowwoc.pouch.core.LazyReference
 
getValue() - Method in class com.github.cowwoc.pouch.core.ConcurrentLazyFactory
Returns the value.
getValue() - Method in class com.github.cowwoc.pouch.core.ConcurrentLazyReference
 
getValue() - Method in class com.github.cowwoc.pouch.core.ConstantReference
 
getValue() - Method in class com.github.cowwoc.pouch.core.LazyFactory
Returns the value.
getValue() - Method in interface com.github.cowwoc.pouch.core.Reference
Returns the value.

I

isClosed() - Method in interface com.github.cowwoc.pouch.core.Scope
Determines if the scope is closed.
isInitialized() - Method in class com.github.cowwoc.pouch.core.LazyFactory
 
isInitialized() - Method in class com.github.cowwoc.pouch.core.LazyReference
 
isInitialized() - Method in class com.github.cowwoc.pouch.core.ConcurrentLazyFactory
 
isInitialized() - Method in class com.github.cowwoc.pouch.core.ConcurrentLazyReference
Returns true if the value was initialized.
isInitialized() - Method in class com.github.cowwoc.pouch.core.ConstantReference
 
isInitialized() - Method in interface com.github.cowwoc.pouch.core.Reference
Indicates if the value was initialized.

L

LazyFactory<T> - Class in com.github.cowwoc.pouch.core
A factory that initializes a value on demand.
LazyFactory() - Constructor for class com.github.cowwoc.pouch.core.LazyFactory
Creates a new instance.
LazyReference<T> - Class in com.github.cowwoc.pouch.core
A reference that initializes a value on demand.
LazyReference() - Constructor for class com.github.cowwoc.pouch.core.LazyReference
Creates a new instance.

R

Reference<T> - Interface in com.github.cowwoc.pouch.core
A reference to a value.
remove(Scope) - Method in class com.github.cowwoc.pouch.core.ConcurrentChildScopes
Removes a child scope.
removeChild(Scope) - Method in class com.github.cowwoc.pouch.core.AbstractScope
 
removeChild(Scope) - Method in interface com.github.cowwoc.pouch.core.Scope
Removes a child scope.
run() - Method in interface com.github.cowwoc.pouch.core.WrappedCheckedException.CheckedRunnable
Runs the task.
runAll(WrappedCheckedException.CheckedRunnable...) - Static method in class com.github.cowwoc.pouch.core.Scopes
Runs one or more tasks, throwing any exceptions they throw after they all finish executing.

S

Scope - Interface in com.github.cowwoc.pouch.core
The lifespan of one or more variables.
Scopes - Class in com.github.cowwoc.pouch.core
Scope helper functions.
shutdown(Duration) - Method in class com.github.cowwoc.pouch.core.ConcurrentChildScopes
Initiates a graceful shutdown of child scopes.

T

toString() - Method in class com.github.cowwoc.pouch.core.LazyReference
 
toString() - Method in class com.github.cowwoc.pouch.core.ConcurrentLazyFactory
 
toString() - Method in class com.github.cowwoc.pouch.core.ConcurrentLazyReference
 
toString() - Method in class com.github.cowwoc.pouch.core.LazyFactory
 

W

wrap(WrappedCheckedException.CheckedRunnable) - Static method in exception class com.github.cowwoc.pouch.core.WrappedCheckedException
Wraps any checked exceptions thrown by a ThrowingRunnable.
wrap(String, Throwable) - Static method in exception class com.github.cowwoc.pouch.core.WrappedCheckedException
Wraps an exception, unless it is a RuntimeException with the specified message.
wrap(Throwable) - Static method in exception class com.github.cowwoc.pouch.core.WrappedCheckedException
Wraps an exception, unless it is a RuntimeException.
wrap(Callable<V>) - Static method in exception class com.github.cowwoc.pouch.core.WrappedCheckedException
Wraps any checked exceptions thrown by a Callable.
WrappedCheckedException - Exception Class in com.github.cowwoc.pouch.core
A runtime exception dedicated to wrapping checked exceptions.
WrappedCheckedException.CheckedRunnable - Interface in com.github.cowwoc.pouch.core
A Runnable that throws checked exceptions.
WrappedCheckedException.UncheckedCallable<V> - Interface in com.github.cowwoc.pouch.core
A Callable that does not throw any checked exceptions.
A C D E F G I L R S T W 
All Classes and Interfaces|All Packages|Serialized Form