// check bounds for index
if (index < 0 || index >= this._annotationList.size())
{
- throw new IndexOutOfBoundsException("getAnnotation: Index value '"
- + index + "' not in range [0.."
- + (this._annotationList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(
+ "getAnnotation: Index value '" + index + "' not in range [0.."
+ + (this._annotationList.size() - 1) + "]");
}
return (jalview.binding.Annotation) _annotationList.get(index);
// check bounds for index
if (index < 0 || index >= this._sequenceList.size())
{
- throw new IndexOutOfBoundsException("getSequence: Index value '"
- + index + "' not in range [0.."
- + (this._sequenceList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(
+ "getSequence: Index value '" + index + "' not in range [0.."
+ + (this._sequenceList.size() - 1) + "]");
}
return (jalview.binding.Sequence) _sequenceList.get(index);
// check bounds for index
if (index < 0 || index >= this._annotationList.size())
{
- throw new IndexOutOfBoundsException("setAnnotation: Index value '"
- + index + "' not in range [0.."
- + (this._annotationList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(
+ "setAnnotation: Index value '" + index + "' not in range [0.."
+ + (this._annotationList.size() - 1) + "]");
}
this._annotationList.set(index, vAnnotation);
// check bounds for index
if (index < 0 || index >= this._sequenceList.size())
{
- throw new IndexOutOfBoundsException("setSequence: Index value '"
- + index + "' not in range [0.."
- + (this._sequenceList.size() - 1) + "]");
+ throw new IndexOutOfBoundsException(
+ "setSequence: Index value '" + index + "' not in range [0.."
+ + (this._sequenceList.size() - 1) + "]");
}
this._sequenceList.set(index, vSequence);
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
{
- return (jalview.binding.SequenceSet) Unmarshaller.unmarshal(
- jalview.binding.SequenceSet.class, reader);
+ return (jalview.binding.SequenceSet) Unmarshaller
+ .unmarshal(jalview.binding.SequenceSet.class, reader);
}
/**