package com.google.common.collect; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * #L% */ public abstract class ImmutableCollection<E> implements java.util.Collection<E>, java.io.Serializable { // Classes // Constructors ImmutableCollection(){ } // Methods public final boolean add(@com.francetelecom.rd.stubs.annotation.FieldSet("content") E arg1){ return false; } public java.lang.String toString(){ return (java.lang.String) null; } public final void clear(){ } public boolean contains(@javax.annotation.Nullable java.lang.Object arg1){ return false; } public boolean isEmpty(){ return false; } @com.francetelecom.rd.stubs.annotation.Code({"content=arg1.iterator().next();", "return com.francetelecom.rd.stubs.Generator.booleanValue();"}) public final boolean addAll(java.util.Collection<? extends E> arg1){ return false; } public abstract UnmodifiableIterator<E> iterator(); @com.francetelecom.rd.stubs.annotation.Code("return new java.lang.Object[] { content };") public java.lang.Object [] toArray(){ return (java.lang.Object []) null; } @com.francetelecom.rd.stubs.annotation.Code({"T[] array = (T[]) java.lang.reflect.Array.newInstance(arg1.getClass().getComponentType(), 1);", "array[0]=(T) content;", "return array;"}) public <T>T [] toArray(T [] arg1){ return (T []) null; } public final boolean remove(java.lang.Object arg1){ return false; } public boolean containsAll(java.util.Collection<?> arg1){ return false; } public final boolean removeAll(java.util.Collection<?> arg1){ return false; } public final boolean retainAll(java.util.Collection<?> arg1){ return false; } public ImmutableList<E> asList(){ return (ImmutableList) null; } }