001 // Copyright (c) 2001 Hursh Jain (http://www.mollypages.org)
002 // The Molly framework is freely distributable under the terms of an
003 // MIT-style license. For details, see the molly pages web site at:
004 // http://www.mollypages.org/. Use, modify, have fun !
005
006 package fc.util;
007
008 import java.util.*;
009
010 /**
011 A range of values such as numbers, dates etc.
012
013 @author hursh jain
014 **/
015 public abstract class Range
016 {
017 protected boolean negated = false;
018
019 /** Checks if this range is negated. **/
020 public boolean isNegated() {
021 return negated;
022 }
023
024 /**
025 Sets this range to be negated or not. By default
026 ranges are <b>not</b> negated.
027
028 @param val <tt>true</tt> to set negated
029 **/
030 public void setNegated(boolean val) {
031 negated = val;
032 }
033
034 } //~class Range