cfa.vo.iris.sed
Class XSegment

java.lang.Object
  extended by cfa.vo.iris.utils.List<SpectroPhotometricPoint>
      extended by 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

Constructor Summary
XSegment(String id, IXSed sed)
           
XSegment(String id, IXSed sed, IList<SpectroPhotometricPoint> elements)
           
 
Method Summary
 void add(int position, SpectroPhotometricPoint element)
          Add an element in a certain position.
 void add(IXSed sed)
           
 boolean add(SpectroPhotometricPoint point)
          Add an element to this list.
 boolean addAll(Collection<? extends SpectroPhotometricPoint> elements)
          Add a collection of elements this list.
 IList<SpectroPhotometricPoint> filter(IPredicate<SpectroPhotometricPoint> predicate, String id)
           
 IList<IXSed> getSeds()
           
 Iterator iterator()
           
 boolean remove(SpectroPhotometricPoint element)
          Remove an element from this list.
 
Methods inherited from class cfa.vo.iris.utils.List
addAll, filter, get, getElements, getId, isEmpty, setId, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cfa.vo.iris.utils.IList
addAll, get, getId, isEmpty, setId, size
 

Constructor Detail

XSegment

public XSegment(String id,
                IXSed sed)

XSegment

public XSegment(String id,
                IXSed sed,
                IList<SpectroPhotometricPoint> elements)
Method Detail

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.