src/main/java/com/googlecode/objectify/impl/FieldProperty.java
private boolean matches(Object onPojo, If<?, ?>[] conditions) {
		if (conditions == null)
			return false;
		
		Object value = this.get(onPojo);

		for (If<?, ?> condition: conditions) {
			@SuppressWarnings("unchecked")
			If<Object, Object> cond = (If<Object, Object>)condition;

			if (cond.matchesValue(value))
				return true;

			if (cond.matchesPojo(onPojo))
				return true;
		}

		return false;
	}
private boolean matches(Object onPojo, If<?, ?>[] conditions) {
		if (conditions == null)
			return false;
		
		Object value = this.get(onPojo);

		for (If<?, ?> condition: conditions) {
			@SuppressWarnings("unchecked")
			If<Object, Object> cond = (If<Object, Object>)condition;

			if (cond.matchesValue(value))
				return true;

			if (cond.matchesPojo(onPojo))
				return true;
		}

		return false;
	}
private boolean matches ( Object onPojo , If < ? , ? > [ ] conditions ) { if ( conditions == null ) return false ; Object value = this . get ( onPojo ) ; for ( If < ? , ? > condition : conditions ) { @ SuppressWarnings ( "unchecked" ) If < Object , Object > cond = ( If < Object , Object > ) condition ; if ( cond . matchesValue ( value ) ) return true ; if ( cond . matchesPojo ( onPojo ) ) return true ; } return false ; }
Tests whether a set of conditions match.
@param conditions can be null; this always matches false
@return true if we match the conditions, false if we do not
Tests whether a set of conditions match .