4cc6ff683eb69f335f18c5bd781b33b2b88c9430
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / PathArgumentList.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.data.api;
9
10 import com.google.common.collect.UnmodifiableIterator;
11 import java.util.AbstractList;
12 import java.util.Collection;
13 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
14
15 abstract class PathArgumentList extends AbstractList<PathArgument> {
16     @Override
17     public abstract UnmodifiableIterator<PathArgument> iterator();
18
19     @Override
20     public final boolean isEmpty() {
21         return false;
22     }
23
24     @Override
25     public final boolean remove(final Object o) {
26         throw new UnsupportedOperationException();
27     }
28
29     @Override
30     public final boolean addAll(final Collection<? extends PathArgument> c) {
31         throw new UnsupportedOperationException();
32     }
33
34     @Override
35     public final boolean removeAll(final Collection<?> c) {
36         throw new UnsupportedOperationException();
37     }
38
39     @Override
40     public final boolean retainAll(final Collection<?> c) {
41         throw new UnsupportedOperationException();
42     }
43
44     @Override
45     public final void clear() {
46         throw new UnsupportedOperationException();
47     }
48
49     @Override
50     public final boolean addAll(final int index, final Collection<? extends PathArgument> c) {
51         throw new UnsupportedOperationException();
52     }
53 }