Package de.unkrig.commons.lang.protocol

Various 'protocol types' and utility classes.

See:
          Description

Interface Summary
Consumer<T> An entity that comsumes a series of objects.
ConsumerWhichThrows<T,EX extends Throwable> Like Consumer, but the ConsumerWhichThrows.consume(Object) method is permitted to throw a given exception.
Duplexer<T> An entity that creates an object based on two other objects of the same type (the 'delegates').
Function<I,O>  
Predicate<T> An entity that tests whether a subject of type T fulfils a particular condition.
PredicateWhichThrows<T,EX extends Throwable> An entity that tests whether a subject of type T fulfils a particular condition.
Producer<T> A source that produces a sequence of elements of type T; the so-called 'products'.
ProducerWhichThrows<T,EX extends Throwable> Like Producer, but the ProducerWhichThrows.produce() method is permitted to throw e given exception.
RunnableWhichThrows<EX extends Exception> Like Runnable, but RunnableWhichThrows.run() is permitted to throw exception EX.
Stoppable Something that does not terminate by itself, but can be stopped from outside, and then terminates, e.g. a server of some kind.
Transformer<I,O> An entity that transforms 'input objects' into 'output objects'.
TransformerWhichThrows<I,O,EX extends Throwable> Like Transformer, but the TransformerWhichThrows.transform(Object) method is permitted to throw a given exception.
 

Class Summary
ConsumerUtil Various Consumer-related utility methods.
HardReference<T> A mutable object reference.
Mapping<K,V> A map that computes a value only when Mapping.get(Object) is invoked.
Mappings Utility methods related to Mapping.
PredicateUtil Various Predicate-related utility methods.
ProducerUtil Various Producer-related utility methods.
RunnableUtil Various Runnable-related utility methods.
StoppableUtil Various Stoppable-related utility methods.
TransformerUtil Various Transformer-related utility methods.
 

Package de.unkrig.commons.lang.protocol Description

Various 'protocol types' and utility classes.