GraphPath implements GraphSegmentList<ST, PT>, Cloneable { @Override public void clear() { this.segmentList.clear(); this.startingPoint = null; this.endingPoint = null; this.isReversable = true; this.length = 0; } protected  GraphPath(List<ST> original);  GraphPath();  GraphPath(ST segment, PT startingPoint1); @Pure boolean isFirstSegmentReversable(); void setFirstSegmentReversable(boolean isReversable1); @Pure @Override int size(); @Pure @Override boolean isEmpty(); @Pure @Override boolean contains(Object obj); @Pure @Override Iterator<ST> iterator(); @Pure @Override Iterator<PT> pointIterator(); @Pure @Override Iterable<PT> points(); @Pure @Override Object[] toArray(); @Override T[] toArray(T[] array); @Pure @Override boolean containsAll(Collection<?> collection); @Override boolean add(ST segment, PT point); @Override void add(int index, ST segment); @Override boolean add(ST segment); @Pure @Override PT getLastPoint(); @Pure @Override PT getFirstPoint(); @Pure @SuppressWarnings("checkstyle:cyclomaticcomplexity") PT getStartingPointFor(int index); @Pure @Override ST getLastSegment(); @Pure @Override ST getAntepenulvianSegment(); @Pure @Override ST getSecondSegment(); @Pure @Override ST getFirstSegment(); @Override boolean addAll(Collection<? extends ST> collection); @Override boolean addAll(int index, Collection<? extends ST> collection); @Override boolean remove(Object obj); @Override ST remove(int index); boolean removeUntil(ST obj, PT pt); @Override boolean removeUntil(ST obj); @Override boolean removeBefore(ST obj); @Override boolean removeBefore(ST obj, PT pt); @Override boolean removeBeforeLast(ST obj); @Override boolean removeBeforeLast(ST obj, PT pt); boolean removeUntilLast(ST obj, PT pt); @Override boolean removeUntilLast(ST obj); boolean removeAfter(ST obj, PT pt); boolean removeAfter(ST obj); boolean removeAfterLast(ST obj); boolean removeAfterLast(ST obj, PT pt); boolean removeFromLast(ST obj, PT pt); boolean removeFromLast(ST obj); boolean removeFrom(ST obj, PT pt); boolean removeFrom(ST obj); @Pure @Override int indexOf(Object obj); @Pure @Override int lastIndexOf(Object obj); @Override boolean removeAll(Collection<?> collection); @Override boolean retainAll(Collection<?> collection); @Override void clear(); @Override ST get(int index); @Override ST set(int index, ST element); @Pure @Override ListIterator<ST> listIterator(); @Pure @Override ListIterator<ST> listIterator(int index); @Pure @Override List<ST> subList(int fromIndex, int toIndex); @Pure @Override String toString(); void invert(); @Pure @SuppressWarnings("unchecked") @Override GP clone(); GP splitAt(ST obj); GP splitAt(ST obj, PT startPoint); GP splitAt(int position); GP splitAfterLast(ST obj); GP splitAfterLast(ST obj, PT startPoint); GP splitAtLast(ST obj, PT startPoint); GP splitAtLast(ST obj); GP splitAfter(ST obj); GP splitAfter(ST obj, PT startPoint); @Pure double getLength();  }
@Test public void clear() { this.path.add(this.s1); this.path.add(this.s4); this.path.add(this.s2); this.path.add(this.s1); this.path.add(this.s1); assertFalse(this.path.isEmpty()); this.path.clear(); assertTrue(this.path.isEmpty()); }