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