@Override
	public Condition build() {
		switch (type) {
			case EQUAL:
				return new Equal(trigger, value);

			case NOT_EQUAL:
				return new NotEqual(trigger, value);

			case LESS_THAN:
				return new LessThan(trigger, value);

			case LESS_THAN_OR_EQUAL:
				return new LessThanOrEqual(trigger, value);

			case GREATER_THAN:
				return new GreaterThan(trigger, value);

			case GREATER_THAN_OR_EQUAL:
				return new GreaterThanOrEqual(trigger, value);

			case MATCH:
				return new Match(trigger, (String) value);

			default:
				throw new IllegalStateException("Unknown compare type " + type);
		}
	}
@ Override public Condition build ( ) { switch ( type ) { case EQUAL : return new Equal ( trigger , value ) ; case NOT_EQUAL : return new NotEqual ( trigger , value ) ; case LESS_THAN : return new LessThan ( trigger , value ) ; case LESS_THAN_OR_EQUAL : return new LessThanOrEqual ( trigger , value ) ; case GREATER_THAN : return new GreaterThan ( trigger , value ) ; case GREATER_THAN_OR_EQUAL : return new GreaterThanOrEqual ( trigger , value ) ; case MATCH : return new Match ( trigger , ( String ) value ) ; default : throw new IllegalStateException ( "Unknown compare type " + type ) ; } }
{@inheritDoc}