X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=support%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fconditions%2FFixedCondition.java;h=92f9be57552f77af2ead39ab6835fef638839f60;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=eff83b1b75d4ffb6e03a58272b87051c90cf89c0;hpb=32a62ca2c752e33a7873ac868a7a1f289caedcd4;p=utils diff --git a/support/general/src/main/java/org/wamblee/conditions/FixedCondition.java b/support/general/src/main/java/org/wamblee/conditions/FixedCondition.java index eff83b1b..92f9be57 100644 --- a/support/general/src/main/java/org/wamblee/conditions/FixedCondition.java +++ b/support/general/src/main/java/org/wamblee/conditions/FixedCondition.java @@ -1,43 +1,45 @@ /* * Copyright 2005 the original author or authors. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - + */ package org.wamblee.conditions; /** - * Condition which always returns a fixed value. - * + * Condition which always returns a fixed value. + * * @author Erik Brakkee + * */ public class FixedCondition implements Condition { - - private boolean _value; - + private boolean value; + /** - * Constructs the condition. - * @param aValue Fixed value of the condition. + * Constructs the condition. + * + * @param aValue + * Fixed value of the condition. */ - public FixedCondition(boolean aValue) { - _value = aValue; + public FixedCondition(boolean aValue) { + value = aValue; } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.wamblee.conditions.Condition#matches(T) */ public boolean matches(T aObject) { - return _value; + return value; } - }