com.gs.collections.impl.map.mutable.primitive.SynchronizedFloatObjectMap Maven / Gradle / Ivy
Show all versions of gs-collections Show documentation
/*
* Copyright 2014 Goldman Sachs.
*
* 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.
*/
package com.gs.collections.impl.map.mutable.primitive;
import java.io.Serializable;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import com.gs.collections.api.FloatIterable;
import com.gs.collections.api.LazyFloatIterable;
import com.gs.collections.api.LazyIterable;
import com.gs.collections.api.RichIterable;
import com.gs.collections.api.bag.MutableBag;
import com.gs.collections.api.bag.sorted.MutableSortedBag;
import com.gs.collections.api.multimap.bag.MutableBagMultimap;
import com.gs.collections.api.block.function.Function;
import com.gs.collections.api.block.function.Function0;
import com.gs.collections.api.block.function.Function2;
import com.gs.collections.api.block.function.primitive.BooleanFunction;
import com.gs.collections.api.block.function.primitive.ByteFunction;
import com.gs.collections.api.block.function.primitive.CharFunction;
import com.gs.collections.api.block.function.primitive.DoubleFunction;
import com.gs.collections.api.block.function.primitive.DoubleObjectToDoubleFunction;
import com.gs.collections.api.block.function.primitive.FloatFunction;
import com.gs.collections.api.block.function.primitive.FloatObjectToFloatFunction;
import com.gs.collections.api.block.function.primitive.IntFunction;
import com.gs.collections.api.block.function.primitive.IntObjectToIntFunction;
import com.gs.collections.api.block.function.primitive.FloatToObjectFunction;
import com.gs.collections.api.block.function.primitive.LongFunction;
import com.gs.collections.api.block.function.primitive.LongObjectToLongFunction;
import com.gs.collections.api.block.function.primitive.ShortFunction;
import com.gs.collections.api.block.predicate.Predicate;
import com.gs.collections.api.block.predicate.Predicate2;
import com.gs.collections.api.block.predicate.primitive.FloatObjectPredicate;
import com.gs.collections.api.block.procedure.Procedure;
import com.gs.collections.api.block.procedure.Procedure2;
import com.gs.collections.api.block.procedure.primitive.FloatObjectProcedure;
import com.gs.collections.api.block.procedure.primitive.FloatProcedure;
import com.gs.collections.api.block.procedure.primitive.ObjectIntProcedure;
import com.gs.collections.api.collection.MutableCollection;
import com.gs.collections.api.collection.primitive.MutableBooleanCollection;
import com.gs.collections.api.collection.primitive.MutableByteCollection;
import com.gs.collections.api.collection.primitive.MutableCharCollection;
import com.gs.collections.api.collection.primitive.MutableDoubleCollection;
import com.gs.collections.api.collection.primitive.MutableFloatCollection;
import com.gs.collections.api.collection.primitive.MutableIntCollection;
import com.gs.collections.api.collection.primitive.MutableLongCollection;
import com.gs.collections.api.collection.primitive.MutableShortCollection;
import com.gs.collections.api.list.MutableList;
import com.gs.collections.api.map.MutableMap;
import com.gs.collections.api.map.primitive.FloatObjectMap;
import com.gs.collections.api.map.primitive.ImmutableFloatObjectMap;
import com.gs.collections.api.map.primitive.ObjectDoubleMap;
import com.gs.collections.api.map.primitive.ObjectLongMap;
import com.gs.collections.api.map.primitive.MutableFloatObjectMap;
import com.gs.collections.api.map.sorted.MutableSortedMap;
import com.gs.collections.api.multimap.MutableMultimap;
import com.gs.collections.api.partition.PartitionMutableCollection;
import com.gs.collections.api.partition.bag.PartitionMutableBag;
import com.gs.collections.api.set.MutableSet;
import com.gs.collections.api.set.primitive.MutableFloatSet;
import com.gs.collections.api.set.sorted.MutableSortedSet;
import com.gs.collections.api.ordered.OrderedIterable;
import com.gs.collections.api.tuple.Pair;
import com.gs.collections.api.tuple.primitive.FloatObjectPair;
import com.gs.collections.impl.SynchronizedRichIterable;
import com.gs.collections.impl.collection.mutable.CollectionAdapter;
import com.gs.collections.impl.collection.mutable.SynchronizedMutableCollection;
import com.gs.collections.impl.factory.primitive.FloatObjectMaps;
import com.gs.collections.impl.primitive.SynchronizedFloatIterable;
import com.gs.collections.impl.set.mutable.primitive.SynchronizedFloatSet;
import com.gs.collections.impl.bag.mutable.HashBag;
import net.jcip.annotations.GuardedBy;
/**
* A synchronized view of a {@link MutableFloatObjectMap}. It is imperative that the user manually synchronize on the collection when iterating over it using the
* standard JDK iterator or JDK 5 for loop, as per {@link Collections#synchronizedCollection(Collection)}.
*
* This file was automatically generated from template file synchronizedPrimitiveObjectMap.stg.
*
* @see MutableFloatObjectMap#asSynchronized()
* @see MutableMap#asSynchronized()
* @since 3.1.
*/
public final class SynchronizedFloatObjectMap
implements MutableFloatObjectMap, Serializable
{
private static final long serialVersionUID = 1L;
private final Object lock;
@GuardedBy("this.lock")
private final MutableFloatObjectMap map;
SynchronizedFloatObjectMap(MutableFloatObjectMap map)
{
this(map, null);
}
SynchronizedFloatObjectMap(MutableFloatObjectMap map, Object newLock)
{
this.map = map;
this.lock = newLock == null ? this : newLock;
}
public V put(float key, V value)
{
synchronized (this.lock)
{
return this.map.put(key, value);
}
}
public void putAll(FloatObjectMap extends V> map)
{
synchronized (this.lock)
{
map.forEachKeyValue(new FloatObjectProcedure()
{
public void value(float key, V value)
{
SynchronizedFloatObjectMap.this.map.put(key, value);
}
});
}
}
public V removeKey(float key)
{
synchronized (this.lock)
{
return this.map.removeKey(key);
}
}
public V remove(float key)
{
synchronized (this.lock)
{
return this.map.remove(key);
}
}
public V getIfAbsentPut(float key, V value)
{
synchronized (this.lock)
{
return this.map.getIfAbsentPut(key, value);
}
}
public V getIfAbsentPut(float key, Function0 extends V> function)
{
synchronized (this.lock)
{
return this.map.getIfAbsentPut(key, function);
}
}
public V getIfAbsentPutWithKey(float key, FloatToObjectFunction extends V> function)
{
synchronized (this.lock)
{
return this.map.getIfAbsentPutWithKey(key, function);
}
}
public V getIfAbsentPutWith(float key, Function super P, ? extends V> function, P parameter)
{
synchronized (this.lock)
{
return this.map.getIfAbsentPutWith(key, function, parameter);
}
}
public V updateValue(float key, Function0 extends V> factory, Function super V, ? extends V> function)
{
synchronized (this.lock)
{
return this.map.updateValue(key, factory, function);
}
}
public
V updateValueWith(float key, Function0 extends V> factory, Function2 super V, ? super P, ? extends V> function, P parameter)
{
synchronized (this.lock)
{
return this.map.updateValueWith(key, factory, function, parameter);
}
}
public V get(float key)
{
synchronized (this.lock)
{
return this.map.get(key);
}
}
public V getIfAbsent(float key, Function0 extends V> ifAbsent)
{
synchronized (this.lock)
{
return this.map.getIfAbsent(key, ifAbsent);
}
}
public boolean containsKey(float key)
{
synchronized (this.lock)
{
return this.map.containsKey(key);
}
}
public boolean containsValue(Object value)
{
synchronized (this.lock)
{
return this.map.containsValue(value);
}
}
public MutableFloatObjectMap tap(Procedure super V> procedure)
{
synchronized (this.lock)
{
this.map.forEach(procedure);
return this;
}
}
public void forEachValue(Procedure super V> procedure)
{
synchronized (this.lock)
{
this.map.forEachValue(procedure);
}
}
public void forEachKey(FloatProcedure procedure)
{
synchronized (this.lock)
{
this.map.forEachKey(procedure);
}
}
public void forEachKeyValue(FloatObjectProcedure super V> procedure)
{
synchronized (this.lock)
{
this.map.forEachKeyValue(procedure);
}
}
public MutableFloatObjectMap select(FloatObjectPredicate super V> predicate)
{
synchronized (this.lock)
{
return this.map.select(predicate);
}
}
public MutableFloatObjectMap reject(FloatObjectPredicate super V> predicate)
{
synchronized (this.lock)
{
return this.map.reject(predicate);
}
}
public int size()
{
synchronized (this.lock)
{
return this.map.size();
}
}
public boolean isEmpty()
{
synchronized (this.lock)
{
return this.map.isEmpty();
}
}
public boolean notEmpty()
{
synchronized (this.lock)
{
return this.map.notEmpty();
}
}
public V getFirst()
{
synchronized (this.lock)
{
return this.map.getFirst();
}
}
public V getLast()
{
synchronized (this.lock)
{
return this.map.getLast();
}
}
public boolean contains(Object object)
{
synchronized (this.lock)
{
return this.map.contains(object);
}
}
public boolean containsAllIterable(Iterable> source)
{
synchronized (this.lock)
{
return this.map.containsAllIterable(source);
}
}
public boolean containsAll(Collection> source)
{
synchronized (this.lock)
{
return this.map.containsAll(source);
}
}
public boolean containsAllArguments(Object... elements)
{
synchronized (this.lock)
{
return this.map.containsAllArguments(elements);
}
}
public MutableCollection select(Predicate super V> predicate)
{
synchronized (this.lock)
{
return this.map.select(predicate);
}
}
public > R select(Predicate super V> predicate, R target)
{
synchronized (this.lock)
{
return this.map.select(predicate, target);
}
}
public MutableCollection selectWith(Predicate2 super V, ? super P> predicate, P parameter)
{
synchronized (this.lock)
{
return this.map.selectWith(predicate, parameter);
}
}
public > R selectWith(Predicate2 super V, ? super P> predicate, P parameter, R targetCollection)
{
synchronized (this.lock)
{
return this.map.selectWith(predicate, parameter, targetCollection);
}
}
public PartitionMutableBag partition(Predicate super V> predicate)
{
synchronized (this.lock)
{
return this.map.partition(predicate);
}
}
public PartitionMutableBag partitionWith(Predicate2 super V, ? super P> predicate, P parameter)
{
synchronized (this.lock)
{
return this.map.partitionWith(predicate, parameter);
}
}
public MutableBag selectInstancesOf(Class clazz)
{
synchronized (this.lock)
{
return this.map.selectInstancesOf(clazz);
}
}
/**
* @deprecated in 7.0. Use {@link OrderedIterable#zipWithIndex()} instead.
*/
@Deprecated
public MutableSet> zipWithIndex()
{
synchronized (this.lock)
{
return this.map.zipWithIndex();
}
}
public >> R zipWithIndex(R target)
{
synchronized (this.lock)
{
return this.map.zipWithIndex(target);
}
}
public RichIterable> chunk(int size)
{
synchronized (this.lock)
{
return this.map.chunk(size);
}
}
public MutableMap aggregateInPlaceBy(Function super V, ? extends K> groupBy, Function0 extends VV> zeroValueFactory, Procedure2 super VV, ? super V> mutatingAggregator)
{
synchronized (this.lock)
{
return this.map.aggregateInPlaceBy(groupBy, zeroValueFactory, mutatingAggregator);
}
}
public MutableMap aggregateBy(Function super V, ? extends K> groupBy, Function0 extends VV> zeroValueFactory, Function2 super VV, ? super V, ? extends VV> nonMutatingAggregator)
{
synchronized (this.lock)
{
return this.map.aggregateBy(groupBy, zeroValueFactory, nonMutatingAggregator);
}
}
public MutableCollection reject(Predicate super V> predicate)
{
synchronized (this.lock)
{
return this.map.reject(predicate);
}
}
public > R reject(Predicate super V> predicate, R target)
{
synchronized (this.lock)
{
return this.map.reject(predicate, target);
}
}
public MutableCollection rejectWith(Predicate2 super V, ? super P> predicate, P parameter)
{
synchronized (this.lock)
{
return this.map.rejectWith(predicate, parameter);
}
}
public > R rejectWith(Predicate2 super V, ? super P> predicate, P parameter, R targetCollection)
{
synchronized (this.lock)
{
return this.map.rejectWith(predicate, parameter, targetCollection);
}
}
public void clear()
{
synchronized (this.lock)
{
this.map.clear();
}
}
public MutableCollection collect(Function super V, ? extends VV> function)
{
synchronized (this.lock)
{
return this.map.collect(function);
}
}
public MutableBooleanCollection collectBoolean(BooleanFunction super V> booleanFunction)
{
synchronized (this.lock)
{
return this.map.collectBoolean(booleanFunction);
}
}
public R collectBoolean(BooleanFunction super V> booleanFunction, R target)
{
synchronized (this.lock)
{
return this.map.collectBoolean(booleanFunction, target);
}
}
public MutableByteCollection collectByte(ByteFunction super V> byteFunction)
{
synchronized (this.lock)
{
return this.map.collectByte(byteFunction);
}
}
public R collectByte(ByteFunction super V> byteFunction, R target)
{
synchronized (this.lock)
{
return this.map.collectByte(byteFunction, target);
}
}
public MutableCharCollection collectChar(CharFunction super V> charFunction)
{
synchronized (this.lock)
{
return this.map.collectChar(charFunction);
}
}
public R collectChar(CharFunction super V> charFunction, R target)
{
synchronized (this.lock)
{
return this.map.collectChar(charFunction, target);
}
}
public MutableDoubleCollection collectDouble(DoubleFunction super V> doubleFunction)
{
synchronized (this.lock)
{
return this.map.collectDouble(doubleFunction);
}
}
public R collectDouble(DoubleFunction super V> doubleFunction, R target)
{
synchronized (this.lock)
{
return this.map.collectDouble(doubleFunction, target);
}
}
public MutableFloatCollection collectFloat(FloatFunction super V> floatFunction)
{
synchronized (this.lock)
{
return this.map.collectFloat(floatFunction);
}
}
public R collectFloat(FloatFunction super V> floatFunction, R target)
{
synchronized (this.lock)
{
return this.map.collectFloat(floatFunction, target);
}
}
public MutableIntCollection collectInt(IntFunction super V> intFunction)
{
synchronized (this.lock)
{
return this.map.collectInt(intFunction);
}
}
public R collectInt(IntFunction super V> intFunction, R target)
{
synchronized (this.lock)
{
return this.map.collectInt(intFunction, target);
}
}
public MutableLongCollection collectLong(LongFunction super V> longFunction)
{
synchronized (this.lock)
{
return this.map.collectLong(longFunction);
}
}
public R collectLong(LongFunction super V> longFunction, R target)
{
synchronized (this.lock)
{
return this.map.collectLong(longFunction, target);
}
}
public MutableShortCollection collectShort(ShortFunction super V> shortFunction)
{
synchronized (this.lock)
{
return this.map.collectShort(shortFunction);
}
}
public R collectShort(ShortFunction super V> shortFunction, R target)
{
synchronized (this.lock)
{
return this.map.collectShort(shortFunction, target);
}
}
public MutableCollection collectWith(Function2 super V, ? super P, ? extends VV> function, P parameter)
{
synchronized (this.lock)
{
return this.map.collectWith(function, parameter);
}
}
public > R collectWith(Function2 super V, ? super P, ? extends VV> function, P parameter, R targetCollection)
{
synchronized (this.lock)
{
return this.map.collectWith(function, parameter, targetCollection);
}
}
public > R collect(Function super V, ? extends VV> function, R target)
{
synchronized (this.lock)
{
return this.map.collect(function, target);
}
}
public MutableBag collectIf(Predicate super V> predicate, Function super V, ? extends VV> function)
{
synchronized (this.lock)
{
return this.map.collectIf(predicate, function);
}
}
public > R collectIf(Predicate super V> predicate, Function super V, ? extends VV> function, R target)
{
synchronized (this.lock)
{
return this.map.collectIf(predicate, function, target);
}
}
public RichIterable flatCollect(Function super V, ? extends Iterable> function)
{
synchronized (this.lock)
{
return this.map.flatCollect(function);
}
}
public > R flatCollect(Function super V, ? extends Iterable> function, R target)
{
synchronized (this.lock)
{
return this.map.flatCollect(function, target);
}
}
public V detect(Predicate super V> predicate)
{
synchronized (this.lock)
{
return this.map.detect(predicate);
}
}
public V detectWith(Predicate2 super V, ? super P> predicate, P parameter)
{
synchronized (this.lock)
{
return this.map.detectWith(predicate, parameter);
}
}
public V detectIfNone(Predicate super V> predicate, Function0 extends V> function)
{
synchronized (this.lock)
{
return this.map.detectIfNone(predicate, function);
}
}
public
V detectWithIfNone(Predicate2 super V, ? super P> predicate, P parameter, Function0 extends V> function)
{
synchronized (this.lock)
{
return this.map.detectWithIfNone(predicate, parameter, function);
}
}
public int count(Predicate super V> predicate)
{
synchronized (this.lock)
{
return this.map.count(predicate);
}
}
public
int countWith(Predicate2 super V, ? super P> predicate, P parameter)
{
synchronized (this.lock)
{
return this.map.countWith(predicate, parameter);
}
}
public boolean anySatisfy(Predicate super V> predicate)
{
synchronized (this.lock)
{
return this.map.anySatisfy(predicate);
}
}
public
boolean anySatisfyWith(Predicate2 super V, ? super P> predicate, P parameter)
{
synchronized (this.lock)
{
return this.map.anySatisfyWith(predicate, parameter);
}
}
public boolean allSatisfy(Predicate super V> predicate)
{
synchronized (this.lock)
{
return this.map.allSatisfy(predicate);
}
}
public
boolean allSatisfyWith(Predicate2 super V, ? super P> predicate, P parameter)
{
synchronized (this.lock)
{
return this.map.allSatisfyWith(predicate, parameter);
}
}
public boolean noneSatisfy(Predicate super V> predicate)
{
synchronized (this.lock)
{
return this.map.noneSatisfy(predicate);
}
}
public
boolean noneSatisfyWith(Predicate2 super V, ? super P> predicate, P parameter)
{
synchronized (this.lock)
{
return this.map.noneSatisfyWith(predicate, parameter);
}
}
public IV injectInto(IV injectedValue, Function2 super IV, ? super V, ? extends IV> function)
{
synchronized (this.lock)
{
return this.map.injectInto(injectedValue, function);
}
}
public int injectInto(int injectedValue, IntObjectToIntFunction super V> function)
{
synchronized (this.lock)
{
return this.map.injectInto(injectedValue, function);
}
}
public long injectInto(long injectedValue, LongObjectToLongFunction super V> function)
{
synchronized (this.lock)
{
return this.map.injectInto(injectedValue, function);
}
}
public float injectInto(float injectedValue, FloatObjectToFloatFunction super V> function)
{
synchronized (this.lock)
{
return this.map.injectInto(injectedValue, function);
}
}
public double injectInto(double injectedValue, DoubleObjectToDoubleFunction super V> function)
{
synchronized (this.lock)
{
return this.map.injectInto(injectedValue, function);
}
}
public MutableList toList()
{
synchronized (this.lock)
{
return this.map.toList();
}
}
public MutableList toSortedList()
{
synchronized (this.lock)
{
return this.map.toSortedList();
}
}
public MutableList toSortedList(Comparator super V> comparator)
{
synchronized (this.lock)
{
return this.map.toSortedList(comparator);
}
}
public > MutableList toSortedListBy(Function super V, ? extends VV> function)
{
synchronized (this.lock)
{
return this.map.toSortedListBy(function);
}
}
public MutableSet toSet()
{
synchronized (this.lock)
{
return this.map.toSet();
}
}
public MutableSortedSet toSortedSet()
{
synchronized (this.lock)
{
return this.map.toSortedSet();
}
}
public MutableSortedSet toSortedSet(Comparator super V> comparator)
{
synchronized (this.lock)
{
return this.map.toSortedSet(comparator);
}
}
public > MutableSortedSet toSortedSetBy(Function super V, ? extends VV> function)
{
synchronized (this.lock)
{
return this.map.toSortedSetBy(function);
}
}
public MutableBag toBag()
{
synchronized (this.lock)
{
return this.map.toBag();
}
}
public MutableSortedBag toSortedBag()
{
synchronized (this.lock)
{
return this.map.toSortedBag();
}
}
public MutableSortedBag toSortedBag(Comparator super V> comparator)
{
synchronized (this.lock)
{
return this.map.toSortedBag(comparator);
}
}
public > MutableSortedBag toSortedBagBy(Function super V, ? extends VV> function)
{
synchronized (this.lock)
{
return this.map.toSortedBagBy(function);
}
}
public MutableMap toMap(Function super V, ? extends NK> keyFunction, Function super V, ? extends NV> valueFunction)
{
synchronized (this.lock)
{
return this.map.toMap(keyFunction, valueFunction);
}
}
public MutableSortedMap toSortedMap(Function super V, ? extends NK> keyFunction, Function super V, ? extends NV> valueFunction)
{
synchronized (this.lock)
{
return this.map.toSortedMap(keyFunction, valueFunction);
}
}
public MutableSortedMap toSortedMap(Comparator super NK> comparator, Function super V, ? extends NK> keyFunction, Function super V, ? extends NV> valueFunction)
{
synchronized (this.lock)
{
return this.map.toSortedMap(comparator, keyFunction, valueFunction);
}
}
public LazyIterable asLazy()
{
synchronized (this.lock)
{
return this.map.asLazy();
}
}
public Object[] toArray()
{
synchronized (this.lock)
{
return this.map.toArray();
}
}
public T[] toArray(T[] a)
{
synchronized (this.lock)
{
return this.map.toArray(a);
}
}
public V min(Comparator super V> comparator)
{
synchronized (this.lock)
{
return this.map.min(comparator);
}
}
public V max(Comparator super V> comparator)
{
synchronized (this.lock)
{
return this.map.max(comparator);
}
}
public V min()
{
synchronized (this.lock)
{
return this.map.min();
}
}
public V max()
{
synchronized (this.lock)
{
return this.map.max();
}
}
public > V maxBy(Function super V, ? extends VV> function)
{
synchronized (this.lock)
{
return this.map.maxBy(function);
}
}
public > V minBy(Function super V, ? extends VV> function)
{
synchronized (this.lock)
{
return this.map.minBy(function);
}
}
public long sumOfInt(IntFunction super V> function)
{
synchronized (this.lock)
{
return this.map.sumOfInt(function);
}
}
public double sumOfFloat(FloatFunction super V> function)
{
synchronized (this.lock)
{
return this.map.sumOfFloat(function);
}
}
public long sumOfLong(LongFunction super V> function)
{
synchronized (this.lock)
{
return this.map.sumOfLong(function);
}
}
public double sumOfDouble(DoubleFunction super V> function)
{
synchronized (this.lock)
{
return this.map.sumOfDouble(function);
}
}
public ObjectLongMap sumByInt(Function groupBy, IntFunction super V> function)
{
synchronized (this.lock)
{
return this.map.sumByInt(groupBy, function);
}
}
public ObjectDoubleMap sumByFloat(Function groupBy, FloatFunction super V> function)
{
synchronized (this.lock)
{
return this.map.sumByFloat(groupBy, function);
}
}
public ObjectLongMap sumByLong(Function groupBy, LongFunction super V> function)
{
synchronized (this.lock)
{
return this.map.sumByLong(groupBy, function);
}
}
public ObjectDoubleMap sumByDouble(Function groupBy, DoubleFunction super V> function)
{
synchronized (this.lock)
{
return this.map.sumByDouble(groupBy, function);
}
}
public MutableFloatSet keySet()
{
synchronized (this.lock)
{
return SynchronizedFloatSet.of(this.map.keySet(), this.lock);
}
}
public Collection values()
{
synchronized (this.lock)
{
return SynchronizedMutableCollection.of(CollectionAdapter.adapt(this.map.values()), this.lock);
}
}
public LazyFloatIterable keysView()
{
synchronized (this.lock)
{
return SynchronizedFloatIterable.of(this.map.keysView(), this.lock).asLazy();
}
}
public RichIterable> keyValuesView()
{
synchronized (this.lock)
{
return SynchronizedRichIterable.of(this.map.keyValuesView(), this.lock).asLazy();
}
}
@Override
public boolean equals(Object obj)
{
synchronized (this.lock)
{
return this.map.equals(obj);
}
}
@Override
public int hashCode()
{
synchronized (this.lock)
{
return this.map.hashCode();
}
}
@Override
public String toString()
{
synchronized (this.lock)
{
return this.map.toString();
}
}
public String makeString()
{
synchronized (this.lock)
{
return this.map.makeString();
}
}
public String makeString(String separator)
{
synchronized (this.lock)
{
return this.map.makeString(separator);
}
}
public String makeString(String start, String separator, String end)
{
synchronized (this.lock)
{
return this.map.makeString(start, separator, end);
}
}
public void appendString(Appendable appendable)
{
synchronized (this.lock)
{
this.map.appendString(appendable);
}
}
public void appendString(Appendable appendable, String separator)
{
synchronized (this.lock)
{
this.map.appendString(appendable, separator);
}
}
public void appendString(Appendable appendable, String start, String separator, String end)
{
synchronized (this.lock)
{
this.map.appendString(appendable, start, separator, end);
}
}
public MutableBagMultimap groupBy(Function super V, ? extends VV> function)
{
synchronized (this.lock)
{
return this.map.groupBy(function);
}
}
public > R groupBy(Function super V, ? extends VV> function, R target)
{
synchronized (this.lock)
{
return this.map.groupBy(function, target);
}
}
public MutableBagMultimap groupByEach(Function super V, ? extends Iterable> function)
{
synchronized (this.lock)
{
return this.map.groupByEach(function);
}
}
public > R groupByEach(Function super V, ? extends Iterable> function, R target)
{
synchronized (this.lock)
{
return this.map.groupByEach(function, target);
}
}
public MutableMap groupByUniqueKey(Function super V, ? extends VV> function)
{
synchronized (this.lock)
{
return this.map.groupByUniqueKey(function);
}
}
public > R groupByUniqueKey(Function super V, ? extends VV> function, R target)
{
synchronized (this.lock)
{
return this.map.groupByUniqueKey(function, target);
}
}
/**
* @deprecated in 7.0. Use {@link OrderedIterable#zip(Iterable)} instead.
*/
@Deprecated
public MutableBag> zip(Iterable that)
{
synchronized (this.lock)
{
return this.map.zip(that);
}
}
public >> R zip(Iterable that, R target)
{
synchronized (this.lock)
{
return this.map.zip(that, target);
}
}
public MutableFloatObjectMap withKeyValue(float key, V value)
{
synchronized (this.lock)
{
this.map.withKeyValue(key, value);
}
return this;
}
public MutableFloatObjectMap withoutKey(float key)
{
synchronized (this.lock)
{
this.map.withoutKey(key);
}
return this;
}
public MutableFloatObjectMap withoutAllKeys(FloatIterable keys)
{
synchronized (this.lock)
{
this.map.withoutAllKeys(keys);
}
return this;
}
public MutableFloatObjectMap asUnmodifiable()
{
return new UnmodifiableFloatObjectMap(this);
}
public MutableFloatObjectMap asSynchronized()
{
return this;
}
public ImmutableFloatObjectMap toImmutable()
{
return FloatObjectMaps.immutable.withAll(this);
}
public void forEach(Procedure super V> procedure)
{
this.each(procedure);
}
public void each(Procedure super V> procedure)
{
synchronized (this.lock)
{
this.map.forEach(procedure);
}
}
public void forEachWithIndex(ObjectIntProcedure super V> objectIntProcedure)
{
synchronized (this.lock)
{
this.map.forEachWithIndex(objectIntProcedure);
}
}
public void forEachWith(Procedure2 super V, ? super P> procedure, P parameter)
{
synchronized (this.lock)
{
this.map.forEachWith(procedure, parameter);
}
}
/**
* Must be called in a synchronized block.
*/
public Iterator iterator()
{
return this.map.iterator();
}
}