Class MutableShortListFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.list.mutable.primitive.MutableShortListFactoryImpl
-
- All Implemented Interfaces:
MutableShortListFactory
public class MutableShortListFactoryImpl extends java.lang.Object implements MutableShortListFactory
MutableShortListFactoryImpl is a factory implementation which creates instances of typeMutableShortList
. This file was automatically generated from template file mutablePrimitiveListFactoryImpl.stg.- Since:
- 6.0.
-
-
Field Summary
Fields Modifier and Type Field Description static MutableShortListFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description MutableShortListFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableShortList
empty()
MutableShortList
of()
Same asMutableShortListFactory.empty()
.MutableShortList
of(short... items)
MutableShortList
ofAll(java.lang.Iterable<java.lang.Short> iterable)
MutableShortList
ofAll(ShortIterable items)
MutableShortList
with()
Same asMutableShortListFactory.empty()
.MutableShortList
with(short... items)
Creates a new list using the passeditems
argument as the backing store.MutableShortList
withAll(java.lang.Iterable<java.lang.Short> iterable)
MutableShortList
withAll(ShortIterable items)
MutableShortList
withInitialCapacity(int capacity)
Same asMutableShortListFactory.empty()
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.factory.list.primitive.MutableShortListFactory
wrapCopy
-
-
-
-
Field Detail
-
INSTANCE
public static final MutableShortListFactory INSTANCE
-
-
Method Detail
-
empty
public MutableShortList empty()
- Specified by:
empty
in interfaceMutableShortListFactory
-
of
public MutableShortList of()
Description copied from interface:MutableShortListFactory
Same asMutableShortListFactory.empty()
.- Specified by:
of
in interfaceMutableShortListFactory
-
with
public MutableShortList with()
Description copied from interface:MutableShortListFactory
Same asMutableShortListFactory.empty()
.- Specified by:
with
in interfaceMutableShortListFactory
-
withInitialCapacity
public MutableShortList withInitialCapacity(int capacity)
Description copied from interface:MutableShortListFactory
Same asMutableShortListFactory.empty()
. but takes in an initial capacity- Specified by:
withInitialCapacity
in interfaceMutableShortListFactory
-
of
public MutableShortList of(short... items)
Description copied from interface:MutableShortListFactory
- Specified by:
of
in interfaceMutableShortListFactory
-
with
public MutableShortList with(short... items)
Creates a new list using the passeditems
argument as the backing store.!!! WARNING: This method uses the passed in array, so can be very unsafe if the original array is held onto anywhere else. !!!
- Specified by:
with
in interfaceMutableShortListFactory
-
ofAll
public MutableShortList ofAll(ShortIterable items)
Description copied from interface:MutableShortListFactory
- Specified by:
ofAll
in interfaceMutableShortListFactory
-
withAll
public MutableShortList withAll(ShortIterable items)
- Specified by:
withAll
in interfaceMutableShortListFactory
-
ofAll
public MutableShortList ofAll(java.lang.Iterable<java.lang.Short> iterable)
Description copied from interface:MutableShortListFactory
- Specified by:
ofAll
in interfaceMutableShortListFactory
- Since:
- 10.0
-
withAll
public MutableShortList withAll(java.lang.Iterable<java.lang.Short> iterable)
- Specified by:
withAll
in interfaceMutableShortListFactory
- Since:
- 10.0
-
-