groovy.lang
Interface Range

All Superinterfaces:
Collection, List
All Known Implementing Classes:
IntRange, ObjectRange

public interface Range
extends List

Represents the interface of a Range implementation

Version:
$Revision: 1.6 $
Author:
James Strachan

Method Summary
 Comparable getFrom()
           
 Comparable getTo()
           
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

getFrom

public Comparable getFrom()
Returns:
the lower value in the range

getTo

public Comparable getTo()
Returns:
the upper value in the range


Copyright © 2003 The Codehaus. All Rights Reserved.