| Package | Description |
|---|---|
| com.atomicleopard.expressive |
Expressive is a java library designed to enable simple and easily read usage
of the Java Collections API. |
| com.atomicleopard.expressive.predicate | |
| com.atomicleopard.expressive.transform |
| Modifier and Type | Method and Description |
|---|---|
static <From,To> ETransformer<From,To> |
Expressive.Transformers.cast(Class<To> type)
Returns an
ETransformer that will cast inputs to the specified type. |
static <EnumType extends Enum<EnumType>> |
Expressive.Transformers.fromEnum(Class<EnumType> type)
Given an
Enum type returns an ETransformer. |
static <T> ETransformer<T,String> |
Expressive.Transformers.stringify()
Returns an
ETransformer which will transform a given object to a string using Object.toString(). |
static <Bean,Property> |
Expressive.Transformers.toBeanLookup(String propertyName)
Given a the name of a javabean property returns an
ETransformer. |
static <Bean,Property> |
Expressive.Transformers.toBeanLookup(String propertyName,
Class<Bean> clazz)
Given a
Class and the name of a javabean property returns an ETransformer. |
static <EnumType extends Enum<EnumType>> |
Expressive.Transformers.toEnum(Class<EnumType> type)
Given an
Enum type returns an ETransformer. |
static <Bean,Property> |
Expressive.Transformers.toKeyBeanLookup(String propertyName)
Given a
Class and the name of a javabean property returns an ETransformer. |
static <Bean,Property> |
Expressive.Transformers.toKeyBeanLookup(String propertyName,
Class<Bean> clazz)
Given a the name of a javabean property returns an
ETransformer. |
static <Bean,Property> |
Expressive.Transformers.toProperty(String propertyName)
Given a the name of a javabean property returns an
ETransformer. |
static <Bean,Property> |
Expressive.Transformers.toProperty(String propertyName,
Class<Bean> clazz)
Given a
Class and the name of a javabean property returns an ETransformer. |
static <From,To> ETransformer<From,To> |
Expressive.Transformers.usingLookup(Map<From,To> lookup)
Given a lookup table in the form of a
Map returns an ETransformer. |
| Modifier and Type | Method and Description |
|---|---|
static <From,To> CollectionTransformer<From,To> |
Expressive.Transformers.transformAllUsing(ETransformer<From,To> transformer)
Creates a
CollectionTransformer for the given ETransformer. |
| Constructor and Description |
|---|
IteratorTransformer(ETransformer<In,Out> transformer,
Iterator<In> iterator) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ETransformer<T,EPredicate<T>> |
EqualsPredicate.Transformer.ForValue() |
| Modifier and Type | Class and Description |
|---|---|
class |
BeanPropertyLookupTransformer<V,K> |
class |
BeanPropertyTransformer<V,K> |
class |
CastTransformer<From,To>
This
ETransformer will cast from the type given in the constructor to the desired type. |
class |
CollectionTransformer<In,Out>
CollectionTransformer enables succinct transformation of collections
of objects utilising the ETransformer pattern. |
class |
EnumFromStringTransformer<From extends Enum<From>> |
class |
EnumToStringTransformer<EnumType extends Enum<EnumType>> |
class |
KeyBeanPropertyLookupTransformer<V,K> |
class |
MappingTransformer<K,V> |
class |
ObjectToStringTransformer<T>
Converts an object to a string using
Object.toString() |
| Constructor and Description |
|---|
CollectionTransformer(ETransformer<In,Out> transformer)
Creates a new
CollectionTransformer which can be used to transform collections. |
Copyright © 2013 Atomic Leopard. All Rights Reserved.