object Buffer extends LowPriorityBufferImplicits with Serializable
- Alphabetic
- By Inheritance
- Buffer
- Serializable
- Serializable
- LowPriorityBufferImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[A](args: A*)(implicit arg0: ClassTag[A]): Buffer[A]
Build a Buffer instance from the provided values.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
empty[A](implicit arg0: ClassTag[A]): Buffer[A]
Allocate an empty Buffer.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
eqv[A](implicit arg0: Eq[A]): Eq[Buffer[A]]
Provide an Eq[Buffer[A]] instance.
Provide an Eq[Buffer[A]] instance.
This method uses the given Eq[A] to compare each element pairwise. Buffers are required to be the same length.
- Definition Classes
- LowPriorityBufferImplicits
-
def
fill[A](n: Int)(a: A)(implicit arg0: ClassTag[A]): Buffer[A]
Fill a length-n Buffer with a constant value.
Fill a length-n Buffer with a constant value.
If A is a reference type, all the elements in the Buffer will point to the same 'a' instance. If it is known to be a value type (e.g. Int) then all the values will be primitives.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromArray[A](arr: Array[A])(implicit arg0: ClassTag[A]): Buffer[A]
Build a Buffer from the provided array.
Build a Buffer from the provided array.
Unlike 'unsafe' this method clones the given array, to prevent possible corruption later.
-
def
fromIterable[A](items: Iterable[A])(implicit arg0: ClassTag[A]): Buffer[A]
Build a Buffer from the provided iterable object.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
def
monoid[A](implicit arg0: ClassTag[A]): Monoid[Buffer[A]]
Provides a Monoid[Buffer[A]] instance.
Provides a Monoid[Buffer[A]] instance.
The identity value is an empty buffer, and the ++ operator is used to concatenate two buffers without modifying their contents.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
ofSize[A](n: Int)(implicit arg0: ClassTag[A]): Buffer[A]
Allocate an empty Buffer, capable of holding n items without resizing itself.
Allocate an empty Buffer, capable of holding n items without resizing itself.
This method is useful if you know you'll be adding a large number of elements in advance and you want to save a few resizes.
-
implicit
def
order[A](implicit arg0: Order[A]): Order[Buffer[A]]
Provide an Order[Buffer[A]] instance.
Provide an Order[Buffer[A]] instance.
The empty buffer is considered "less-than" any non-empty buffer, and non-empty buffers are compared lexicographically. Elemens are compared using the given Order[A].
-
def
pairwiseMonoid[A](implicit arg0: ClassTag[A], arg1: Monoid[A]): Monoid[Buffer[A]]
Alternative Monoid[Buffer[A]] which combines buffers in a pairwise fashion.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unsafe[A](arr: Array[A])(implicit arg0: ClassTag[A]): Buffer[A]
Wrap an array instance directly in a Buffer.
Wrap an array instance directly in a Buffer.
This method is named 'unsafe' because the underlying array could potentially be modified somewhere else, changing or corrupting the Buffer. You should only use this method when you know that the array will not be stored or modified externally.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )