public final class HL7SegmentList extends ArrayList<HL7Segment>
HL7Segment objects that requires there to always be an initial MSH segment.
In particular, this class enforces the following constraints:
MSHSegmentIllegalStateException being thrown.
Note we do not enforce the other segments to be anything, not even non-null.
modCount| Constructor and Description |
|---|
HL7SegmentList(MSHSegment msh)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
HL7Segment |
remove(int index) |
boolean |
remove(Object obj) |
protected void |
removeRange(int fromIndex,
int toIndex) |
HL7Segment |
set(int index,
HL7Segment segment) |
add, add, addAll, addAll, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic HL7SegmentList(MSHSegment msh)
msh - MSH segmentIllegalArgumentException - if msh is nullpublic void clear()
clear in interface Collection<HL7Segment>clear in interface List<HL7Segment>clear in class ArrayList<HL7Segment>public HL7Segment remove(int index)
remove in interface List<HL7Segment>remove in class ArrayList<HL7Segment>public boolean remove(Object obj)
remove in interface Collection<HL7Segment>remove in interface List<HL7Segment>remove in class ArrayList<HL7Segment>protected void removeRange(int fromIndex,
int toIndex)
removeRange in class ArrayList<HL7Segment>public HL7Segment set(int index, HL7Segment segment)
set in interface List<HL7Segment>set in class ArrayList<HL7Segment>Copyright © 2018. All rights reserved.