cfa.vo.iris.sed
Class XSegment
java.lang.Object
cfa.vo.iris.utils.List<SpectroPhotometricPoint>
cfa.vo.iris.sed.XSegment
- All Implemented Interfaces:
- IXSegment<SpectroPhotometricPoint>, IList<SpectroPhotometricPoint>, Iterable<SpectroPhotometricPoint>
public class XSegment
- extends List<SpectroPhotometricPoint>
- implements IXSegment<SpectroPhotometricPoint>
- Author:
- olaurino
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSegment
public XSegment(String id,
IXSed sed)
XSegment
public XSegment(String id,
IXSed sed,
IList<SpectroPhotometricPoint> elements)
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Iterable<SpectroPhotometricPoint>
- Overrides:
iterator
in class List<SpectroPhotometricPoint>
add
public boolean add(SpectroPhotometricPoint point)
throws SedException
- Description copied from interface:
IList
- Add an element to this list.
- Specified by:
add
in interface IList<SpectroPhotometricPoint>
- Overrides:
add
in class List<SpectroPhotometricPoint>
- Parameters:
point
- The element to be added.
- Returns:
-
- Throws:
SedException
- An Exception is thrown when the element fails a compatibility check.
addAll
public boolean addAll(Collection<? extends SpectroPhotometricPoint> elements)
throws SedException
- Description copied from interface:
IList
- Add a collection of elements this list.
- Specified by:
addAll
in interface IList<SpectroPhotometricPoint>
- Overrides:
addAll
in class List<SpectroPhotometricPoint>
- Parameters:
elements
- The elements to be added.
- Returns:
-
- Throws:
SedException
- An Exception is thrown when an element in the collection fails a compatibility check.
add
public void add(int position,
SpectroPhotometricPoint element)
throws SedException
- Description copied from interface:
IList
- Add an element in a certain position.
- Specified by:
add
in interface IList<SpectroPhotometricPoint>
- Overrides:
add
in class List<SpectroPhotometricPoint>
- Parameters:
position
- The position in which the element has to be added.element
- The element to be added.
- Throws:
SedException
- SedException An Exception is thrown when the element fails a compatibility check.
remove
public boolean remove(SpectroPhotometricPoint element)
- Description copied from interface:
IList
- Remove an element from this list.
- Specified by:
remove
in interface IList<SpectroPhotometricPoint>
- Overrides:
remove
in class List<SpectroPhotometricPoint>
- Parameters:
element
- The element to be removed.
- Returns:
filter
public IList<SpectroPhotometricPoint> filter(IPredicate<SpectroPhotometricPoint> predicate,
String id)
- Specified by:
filter
in interface IXSegment<SpectroPhotometricPoint>
getSeds
public IList<IXSed> getSeds()
- Specified by:
getSeds
in interface IXSegment<SpectroPhotometricPoint>
add
public void add(IXSed sed)
- Specified by:
add
in interface IXSegment<SpectroPhotometricPoint>
Copyright © 2013. All rights reserved.