@Override public Iterable<T> map( Type type ) { return flattenIterables( Iterables.map( function, TYPES_OF.map( type ) ) ); } };
@Override public boolean satisfiedBy( Composite item ) { return Specifications.not( operand ).satisfiedBy( item ); }
@Override public boolean satisfiedBy( Composite item ) { return Specifications.or( operands ).satisfiedBy( item ); }
public static Specification<ApplicationEvent> withNames( final Class eventClass ) { return ApplicationEvents.withNames( Iterables.map( new Function<Method, String>() { @Override public String map( Method method ) { return method.getName(); } }, Iterables.toList( Methods.METHODS_OF.map( eventClass ) ) )); }
public ValueCompositeTemplateModel( ValueComposite composite, ObjectWrapper wrapper ) { this.composite = composite; this.wrapper = wrapper; descriptor = (ValueDescriptor) Qi4j.FUNCTION_DESCRIPTOR_FOR.map( composite ); }
public static Iterable<DomainEventValue> events( Iterable<UnitOfWorkDomainEventsValue> transactions ) { return Iterables.flattenIterables( Iterables.map( new Function<UnitOfWorkDomainEventsValue, Iterable<DomainEventValue>>() { @Override public Iterable<DomainEventValue> map( UnitOfWorkDomainEventsValue unitOfWorkDomainEventsValue ) { return unitOfWorkDomainEventsValue.events().get(); } }, transactions ) ); }
@Override public String toString() { return collectionProperty + " contains " + Iterables.toList( valueCollection ); } }
@Override public Query filter( Specification<T> filter ) { iterable = Iterables.filter( filter, iterable ); return this; }
@Override public boolean satisfiedBy( Composite item ) { return Specifications.and( operands ).satisfiedBy( item ); }
@Override public Iterable<EntityReference> map( AssociationDescriptor associationDescriptor ) { // TODO return Iterables.empty(); } },
public Object[] toArray() { return Iterables.toArray( Object.class, selection ); } }
@Override public Iterable<T> map( Type type ) { return flattenIterables( Iterables.map( function, CLASS_HIERARCHY.map( type ) ) ); } };
public static Iterable<Type> interfacesOf( Type type ) { return INTERFACES_OF.map( type ); }