| 692 | |
| 693 | |
| 694 | static class UnmodifiableListIterator<T> extends UnmodifiableIterator<T> |
| 695 | implements ListIterator<T> { |
| 696 | private final ListIterator<T> innerListIterator; |
| 697 | |
| 698 | UnmodifiableListIterator(ListIterator<T> listIterator) { |
| 699 | super(listIterator); |
| 700 | |
| 701 | this.innerListIterator = listIterator; |
| 702 | } |
| 703 | |
| 704 | @Override |
| 705 | public boolean hasPrevious() { |
| 706 | return innerListIterator.hasPrevious(); |
| 707 | } |
| 708 | |
| 709 | @Override |
| 710 | public T previous() { |
| 711 | return innerListIterator.previous(); |
| 712 | } |
| 713 | } |
| 714 | |
| 715 | static class UnmodifiableCollection<T> implements Collection<T> { |
| 716 | private final Collection<T> inner; |
nothing calls this directly
no outgoing calls
no test coverage detected