it.amattioli.encapsulate.range
Class ContinousRange<T extends Comparable<T>>

Show UML class diagram
java.lang.Object
  extended by it.amattioli.encapsulate.range.AbstractRange<T>
      extended by it.amattioli.encapsulate.range.ContinousRange<T>
All Implemented Interfaces:
Range<T>
Direct Known Subclasses:
ConventionalTimeInterval, GenericContinousRange

public abstract class ContinousRange<T extends Comparable<T>>
extends AbstractRange<T>


Constructor Summary
ContinousRange()
           
 
Method Summary
 boolean abutOn(Range<? extends T> r)
          Controlla se un altro range e' adiacente a questo.
 Range<T> gap(Range<T> r)
          Costruisce un nuovo range che rappresenta lo spazio vuoto tra questo e quello passato come parametro.
 Range<T> mergeWith(Range<T> r)
          Costruisce un nuovo range corrispondente all'unione di queso con quello passato come parametro.
 Set<Range<T>> minus(Range<T> r)
           
 
Methods inherited from class it.amattioli.encapsulate.range.AbstractRange
contains, equals, hashCode, hasSameHigh, hasSameLow, includes, intersect, newRange, overlaps, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.amattioli.encapsulate.range.Range
getHigh, getLow, isHighBounded, isLowBounded
 

Constructor Detail

ContinousRange

public ContinousRange()
Method Detail

mergeWith

public Range<T> mergeWith(Range<T> r)
Description copied from interface: Range
Costruisce un nuovo range corrispondente all'unione di queso con quello passato come parametro. Questa operazione e' definita solamente se i due range si sovrappongono, altrimenti verra' sollevata un'eccezione.


abutOn

public boolean abutOn(Range<? extends T> r)
Description copied from interface: Range
Controlla se un altro range e' adiacente a questo.


gap

public Range<T> gap(Range<T> r)
Description copied from interface: Range
Costruisce un nuovo range che rappresenta lo spazio vuoto tra questo e quello passato come parametro. Questa operazione e' definita solamente se i due range non si sovrappongono, altrimenti verra' sollevata un'eccezione.


minus

public Set<Range<T>> minus(Range<T> r)


Copyright © 2011. All Rights Reserved.