public boolean isCollection() { return property != null ? property.isCollection() : Collection.class.isAssignableFrom(rawType()); }
/** * @return true if this property is a Map, Collection or Array */ public boolean isMultiOccurrence() { return isMap() || isCollection() || isArray(); }
/** * @return true if this property is a Map, Collection or Array */ public boolean isMultiOccurrence() { return isMap() || isCollection() || isArray(); }
public boolean apply(FieldMap fieldMap) { return (fieldMap.getSource().isArray() || fieldMap.getSource().isCollection()) && fieldMap.getDestination().isCollection(); } };
/** * @param aInverse * @return this FieldMapBuilder */ public FieldMapBuilder<A, B> aInverse(final String aInverse) { final Type<?> type = aProperty.isCollection() ? aProperty.getElementType() : aProperty.getType(); aInverseProperty = classMapBuilder.resolveProperty(type, aInverse); return this; }
/** * @param aInverse * @return */ public FieldMapBuilder<A, B> aInverse(String aInverse) { final Type<?> type = aProperty.isCollection() ? aProperty.getElementType() : aProperty.getType(); aInverseProperty = classMapBuilder.resolveProperty(type, aInverse); return this; }
/** * @param bInverse * @return this FieldMapBuilder */ public FieldMapBuilder<A, B> bInverse(final String bInverse) { final Type<?> type = bProperty.isCollection() ? bProperty.getElementType() : bProperty.getType(); bInverseProperty = classMapBuilder.resolveProperty(type, bInverse); return this; }
/** * @param bInverse * @return */ public FieldMapBuilder<A, B> bInverse(String bInverse) { final Type<?> type = bProperty.isCollection() ? bProperty.getElementType() : bProperty.getType(); bInverseProperty = classMapBuilder.resolveProperty(type, bInverse); return this; }
public boolean apply(FieldMap fieldMap) { return fieldMap.getDestination().isArray() && (fieldMap.getSource().isArray() || fieldMap.getSource().isCollection()); } };
public boolean apply(FieldMap fieldMap) { return fieldMap.getSource().isMap() && (fieldMap.getDestination().isCollection() || fieldMap.getDestination().isArray()); } };
public boolean apply(FieldMap fieldMap) { return fieldMap.getDestination().isMap() && (fieldMap.getSource().isCollection() || fieldMap.getSource().isArray()); } };
public boolean apply(FieldMap fieldMap) { return fieldMap.getDestination().isMapKey() && (fieldMap.getSource().getType().isImmutable() || (!fieldMap.getSource().isCollection() && !fieldMap.getSource().isArray() && !fieldMap.getSource().isMap() && !fieldMap.getSource().isEnum())); } };
public boolean apply(FieldMap fieldMap) { return fieldMap.getSource().isMapKey() && (fieldMap.getDestination().getType().isImmutable() || (!fieldMap.getDestination().isCollection() && !fieldMap.getDestination().isArray() && !fieldMap.getDestination().isMap() && !fieldMap.getDestination() .isEnum())); } };
public boolean apply(FieldMap fieldMap) { return fieldMap.getSource().isMapKey() && (ClassUtil.isImmutable(fieldMap.getDestination().getType()) || (!fieldMap.getDestination().isCollection() && !fieldMap.getDestination().isArray() && !fieldMap.getDestination().isMap() && !fieldMap.getDestination() .isEnum())); } };
public boolean apply(FieldMap fieldMap) { return fieldMap.getDestination().isMapKey() && (ClassUtil.isImmutable(fieldMap.getSource().getType()) || (!fieldMap.getSource().isCollection() && !fieldMap.getSource().isArray() && !fieldMap.getSource().isMap() && !fieldMap.getSource().isEnum())); } };
public boolean apply(FieldMap fieldMap) { return (fieldMap.getDestination().isListElement() || fieldMap.getDestination().isArrayElement()) && (ClassUtil.isImmutable(fieldMap.getSource().getType()) || (!fieldMap.getSource().isCollection() && !fieldMap.getSource().isArray() && !fieldMap.getSource().isMap() && !fieldMap.getSource().isEnum())); } };
public boolean apply(FieldMap fieldMap) { return (fieldMap.getSource().isListElement() || fieldMap.getSource().isArrayElement()) && (fieldMap.getDestination().getType().isImmutable() || (!fieldMap.getDestination().isCollection() && !fieldMap.getDestination().isArray() && !fieldMap.getDestination().isMap() && !fieldMap.getDestination() .isEnum())); } };
public boolean apply(FieldMap fieldMap) { return (fieldMap.getDestination().isListElement() || fieldMap.getDestination().isArrayElement()) && (fieldMap.getSource().getType().isImmutable() || (!fieldMap.getSource().isCollection() && !fieldMap.getSource().isArray() && !fieldMap.getSource().isMap() && !fieldMap.getSource().isEnum())); } };
public boolean apply(FieldMap fieldMap) { return (fieldMap.getSource().isListElement() || fieldMap.getSource().isArrayElement()) && (ClassUtil.isImmutable(fieldMap.getDestination().getType()) || (!fieldMap.getDestination().isCollection() && !fieldMap.getDestination().isArray() && !fieldMap.getDestination().isMap() && !fieldMap.getDestination() .isEnum())); } };
public boolean appliesTo(FieldMap fieldMap) { return (fieldMap.getSource().isMapKey() || fieldMap.getSource().isArrayElement() || fieldMap.getSource().isListElement()) && (ClassUtil.isImmutable(fieldMap.getDestination().getType()) || (!fieldMap.getDestination().isCollection() && !fieldMap.getDestination().isArray() && !fieldMap.getDestination().isMap() && !fieldMap.getDestination() .isEnum())); }