JTemporal Home
Tutorial

net.sf.jtemporal
Class AbstractTemporalSet<V>

java.lang.Object
  extended by net.sf.jtemporal.AbstractTemporalSet<V>
Type Parameters:
V - the type of the value
All Implemented Interfaces:
TemporalSet<V>
Direct Known Subclasses:
TemporalSetImpl, TreeTemporalSet

public abstract class AbstractTemporalSet<V>
extends java.lang.Object
implements TemporalSet<V>

Features common to the MultiMaps.

Version:
$Id: AbstractTemporalSet.java,v 1.5 2007/09/14 20:03:04 tabeck Exp $

Constructor Summary
AbstractTemporalSet()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Period extent(java.lang.Object value)
          Return a period enclosing firstInstant(value) and lastInstantvalue()
 boolean putAll(TemporalSet<? extends V> mtm)
          Copies all of the mappings from the specified map to this map.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jtemporal.TemporalSet
clear, contains, containsValue, entrySet, firstInstant, firstPeriod, getPeriod, isEmpty, isEmpty, lastInstant, lastPeriod, periodSet, put, remove, removePeriod, removeValue, size, sizeAt, sizeFor, sizeValues, valueSet, valueSet
 

Constructor Detail

AbstractTemporalSet

public AbstractTemporalSet()
Method Detail

extent

public Period extent(java.lang.Object value)
Description copied from interface: TemporalSet
Return a period enclosing firstInstant(value) and lastInstantvalue()

Specified by:
extent in interface TemporalSet<V>
Returns:
new Period(firstInstant(value), lastInstant(value))
See Also:
TemporalSet.firstInstant(Object), TemporalSet.lastInstant(Object)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

putAll

public boolean putAll(TemporalSet<? extends V> mtm)
Description copied from interface: TemporalSet
Copies all of the mappings from the specified map to this map. These mappings will replace any mappings that this map had for any of the periods currently in the specified map.

Specified by:
putAll in interface TemporalSet<V>
Parameters:
mtm - Mappings to be stored in this map.
Returns:
true if one or more previous values are overwritten partially or completely. false if there is any conflicting mapping.

JTemporal Home
Tutorial