L
- Legpublic abstract class AbstractLegsSequence<L extends Leg> extends Object implements LegsSequence<L>
LegsSequence
interface.Constructor and Description |
---|
AbstractLegsSequence(String natureIn)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(L leg)
Add the input leg to the sequence.
|
boolean |
addAll(Collection<? extends L> collection) |
L |
ceiling(L leg) |
void |
clear() |
Comparator<? super L> |
comparator() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
Iterator<L> |
descendingIterator() |
NavigableSet<L> |
descendingSet() |
L |
first() |
L |
floor(L leg) |
L |
getLeg(AbsoluteDate date)
{inheritDoc}
|
String |
getNature()
Returns the sequence nature.
|
AbsoluteDateInterval |
getTimeInterval()
Return the time interval of validity of the leg
|
boolean |
hasOverlaping()
Returns a boolean indicating if the sequence contains overlapping legs.
|
SortedSet<L> |
headSet(L toElement) |
NavigableSet<L> |
headSet(L toElement,
boolean inclusive) |
L |
higher(L leg) |
boolean |
isCompact()
Returns a boolean indicating if the sequence is compact or not.
|
boolean |
isEmpty() |
Iterator<L> |
iterator() |
L |
last() |
L |
lower(L leg) |
L |
pollFirst() |
L |
pollLast() |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
int |
size() |
NavigableSet<L> |
subSet(L fromElement,
boolean fromInclusive,
L toElement,
boolean toInclusive) |
SortedSet<L> |
subSet(L fromElement,
L toElement) |
SortedSet<L> |
tailSet(L fromElement) |
NavigableSet<L> |
tailSet(L fromElement,
boolean inclusive) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public AbstractLegsSequence(String natureIn)
natureIn
- nature of the sequencepublic AbsoluteDateInterval getTimeInterval() throws PatriusException
getTimeInterval
in interface Leg
PatriusException
- thrown if the time interval is not computedpublic String getNature()
public L getLeg(AbsoluteDate date) throws PatriusException
getLeg
in interface LegsSequence<L extends Leg>
date
- input datePatriusException
- thrown if no leg contains the input datepublic L pollFirst()
pollFirst
in interface NavigableSet<L extends Leg>
public L pollLast()
pollLast
in interface NavigableSet<L extends Leg>
public NavigableSet<L> descendingSet()
descendingSet
in interface NavigableSet<L extends Leg>
public Iterator<L> descendingIterator()
descendingIterator
in interface NavigableSet<L extends Leg>
public NavigableSet<L> subSet(L fromElement, boolean fromInclusive, L toElement, boolean toInclusive)
subSet
in interface NavigableSet<L extends Leg>
public NavigableSet<L> headSet(L toElement, boolean inclusive)
headSet
in interface NavigableSet<L extends Leg>
public NavigableSet<L> tailSet(L fromElement, boolean inclusive)
tailSet
in interface NavigableSet<L extends Leg>
public Comparator<? super L> comparator()
comparator
in interface SortedSet<L extends Leg>
public int size()
public boolean isEmpty()
public boolean contains(Object object)
public Object[] toArray()
public <T> T[] toArray(T[] array)
public boolean add(L leg)
Collections that support this operation may place limitations on what elements may be added to this collection. In particular, some collections will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. Collection classes should clearly specify in their documentation any restrictions on what elements may be added.
If a collection refuses to add a particular element for any reason other than that it already contains the element, it must throw an exception (rather than returning false ). This preserves the invariant that a collection always contains the specified element after this call returns.
public boolean remove(Object object)
public boolean containsAll(Collection<?> collection)
containsAll
in interface Collection<L extends Leg>
containsAll
in interface Set<L extends Leg>
public boolean addAll(Collection<? extends L> collection)
public boolean retainAll(Collection<?> collection)
public boolean removeAll(Collection<?> collection)
public void clear()
public boolean isCompact() throws PatriusException
PatriusException
- thrown if sequence is emptypublic boolean hasOverlaping() throws PatriusException
PatriusException
- thrown if sequence is emptyCopyright © 2019 CNES. All rights reserved.