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