protected StatefulAssociationValueType( M model ) { super( model.types().collect( Collectors.toList() ) ); this.model = model; }
protected StatefulAssociationValueType( M model ) { super( model.types().collect( Collectors.toList() ) ); this.model = model; }
public HasEqualType( T hasTypes ) { super( hasTypes.types().collect( toList() ) ); }
public HasAssignableToType( T hasTypes ) { super( hasTypes.types().collect( toList() ) ); }
public HasAssignableToType( T hasTypes ) { super( hasTypes.types().collect( toList() ) ); }
public HasAssignableFromType( T hasTypes ) { super( hasTypes.types().collect( toList() ) ); }
public static Predicate<HasTypes> ofAnyType( final Class... types ) { return item -> item.types().anyMatch( a -> Arrays.stream( types ).anyMatch( a::equals ) ); } }
public HasAssignableFromType( T hasTypes ) { super( hasTypes.types().collect( toList() ) ); }
public HasEqualType( T hasTypes ) { super( hasTypes.types().collect( toList() ) ); }
public static Predicate<HasTypes> ofAnyType( final Class... types ) { return item -> item.types().anyMatch( a -> Arrays.stream( types ).anyMatch( a::equals ) ); } }
default boolean hasType( Type type ) { Class<?> rawType = Classes.RAW_CLASS.apply( type ); return types().map( Classes.RAW_CLASS ).anyMatch( rawType::isAssignableFrom ); } }
default boolean hasType( Type type ) { Class<?> rawType = Classes.RAW_CLASS.apply( type ); return types().map( Classes.RAW_CLASS ).anyMatch( rawType::isAssignableFrom ); } }
private static String format( Map<EntityComposite, HasTypes> concurrentlyModifiedEntities ) { return concurrentlyModifiedEntities.entrySet().stream() .map( entry -> entry.getKey() + " : " + entry.getValue().types().map( Class::getSimpleName ) .collect( Collectors.joining( "," ) ) ) .collect( Collectors.joining( NL ) ); }
private static String format( Map<EntityComposite, HasTypes> concurrentlyModifiedEntities ) { return concurrentlyModifiedEntities.entrySet().stream() .map( entry -> entry.getKey() + " : " + entry.getValue().types().map( Class::getSimpleName ) .collect( Collectors.joining( "," ) ) ) .collect( Collectors.joining( NL ) ); }