public class FASTAFileImpl extends Object implements FASTAFile
Example:
TODO example
last reviewed: 2013-04-29
| Modifier and Type | Field and Description |
|---|---|
protected Collection<FASTAElement> |
elements |
DEFAULT_LINE_LENGTH, HEADER_IDENT| Constructor and Description |
|---|
FASTAFileImpl() |
FASTAFileImpl(Collection<? extends FASTAElement> elements) |
FASTAFileImpl(FASTAElement element) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(FASTAElement e) |
boolean |
addAll(Collection<? extends FASTAElement> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj) |
FASTAElement |
getElementByHeader(String header)
Retrieves
FASTAElement with given header string, if
there is such an element. |
FASTAElement |
getLargestElement()
Retrieves Element with the longest sequence.
|
int |
getLineLength()
Retrieves this
FASTAFile's line length. |
boolean |
hasElementByHeader(String header)
Checks whether this
FASTAFile contains a FASTAElement
with given header string. |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<FASTAElement> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
void |
setLineLength(int len)
Sets this
FASTAFile's line length. |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
protected final Collection<FASTAElement> elements
public FASTAFileImpl()
public FASTAFileImpl(Collection<? extends FASTAElement> elements)
public FASTAFileImpl(FASTAElement element)
public boolean add(FASTAElement e)
add in interface Collection<FASTAElement>add in interface Set<FASTAElement>public boolean addAll(Collection<? extends FASTAElement> c)
addAll in interface Collection<FASTAElement>addAll in interface Set<FASTAElement>public void clear()
clear in interface Collection<FASTAElement>clear in interface Set<FASTAElement>public boolean contains(Object o)
contains in interface Collection<FASTAElement>contains in interface Set<FASTAElement>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<FASTAElement>containsAll in interface Set<FASTAElement>public boolean equals(Object obj)
equals in interface Collection<FASTAElement>equals in interface Set<FASTAElement>equals in class Objectpublic FASTAElement getElementByHeader(String header)
FASTAFileFASTAElement with given header string, if
there is such an element.getElementByHeader in interface FASTAFileheader - header string that matches returned FASTAElement's header stringFASTAElement which header matches given onepublic FASTAElement getLargestElement()
FASTAFilegetLargestElement in interface FASTAFileFASTAElement with the longest sequencepublic int getLineLength()
FASTAFileFASTAFile's line length.getLineLength in interface FASTAFileFASTAFile's line lengthpublic boolean hasElementByHeader(String header)
FASTAFileFASTAFile contains a FASTAElement
with given header string.hasElementByHeader in interface FASTAFileheader - header stringFASTAElement in this
FASTAFile, false otherwisepublic int hashCode()
hashCode in interface Collection<FASTAElement>hashCode in interface Set<FASTAElement>hashCode in class Objectpublic boolean isEmpty()
isEmpty in interface Collection<FASTAElement>isEmpty in interface Set<FASTAElement>public Iterator<FASTAElement> iterator()
iterator in interface Iterable<FASTAElement>iterator in interface Collection<FASTAElement>iterator in interface Set<FASTAElement>public boolean remove(Object o)
remove in interface Collection<FASTAElement>remove in interface Set<FASTAElement>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<FASTAElement>removeAll in interface Set<FASTAElement>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<FASTAElement>retainAll in interface Set<FASTAElement>public void setLineLength(int len)
FASTAFileFASTAFile's line length.setLineLength in interface FASTAFilelen - line length to usepublic int size()
size in interface Collection<FASTAElement>size in interface Set<FASTAElement>public Object[] toArray()
toArray in interface Collection<FASTAElement>toArray in interface Set<FASTAElement>public <T> T[] toArray(T[] a)
toArray in interface Collection<FASTAElement>toArray in interface Set<FASTAElement>Copyright © 2013. All Rights Reserved.