8b5f8cb6e3752f2b5d2fc30f6b1abbd4439101d3
[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 javax.annotation.Nonnull;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
15
16 abstract class PathArgumentList extends AbstractList<PathArgument> {
17     @Nonnull
18     @Override
19     public abstract UnmodifiableIterator<PathArgument> iterator();
20
21     @Override
22     public final boolean isEmpty() {
23         return false;
24     }
25
26     @Override
27     public final boolean remove(final Object o) {
28         throw new UnsupportedOperationException();
29     }
30
31     @Override
32     public final boolean addAll(@Nonnull final Collection<? extends PathArgument> c) {
33         throw new UnsupportedOperationException();
34     }
35
36     @Override
37     public final boolean removeAll(@Nonnull final Collection<?> c) {
38         throw new UnsupportedOperationException();
39     }
40
41     @Override
42     public final boolean retainAll(@Nonnull final Collection<?> c) {
43         throw new UnsupportedOperationException();
44     }
45
46     @Override
47     public final void clear() {
48         throw new UnsupportedOperationException();
49     }
50
51     @Override
52     public final boolean addAll(final int index, final Collection<? extends PathArgument> c) {
53         throw new UnsupportedOperationException();
54     }
55 }