trait Factory[-A, +C] extends Any
A factory that builds a collection of type C
with elements of type A
.
This is a general form of any factory (IterableFactory, SortedIterableFactory, MapFactory and SortedMapFactory) whose element type is fixed.
- A
Type of elements (e.g.
Int
,Boolean
, etc.)- C
Type of collection (e.g.
List[Int]
,TreeMap[Int, String]
, etc.)
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Factory
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
fromSpecific(it: IterableOnce[A]): C
- it
Source collection
- returns
A collection of type
C
containing the same elements as the source collectionit
.
-
abstract
def
getClass(): Class[_]
- Definition Classes
- Any
-
abstract
def
newBuilder(): Builder[A, C]
Get a Builder for the collection.
Get a Builder for the collection. For non-strict collection types this will use an intermediate buffer. Building collections with
fromSpecific
is preferred because it can be lazy for lazy collections.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any