sealed trait Sized extends AnyRef
Size of a data structure resembles the type hierarchy to support lists of lists and objects of lists.
Each structure has a size (which is 0 or 1 for non-collection types).
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Sized
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
assertMatches(ty: Type): Unit
Assert, that this structure matches the given type.
-
abstract
def
clamp(maxBound: Int): Sized
Clamp this structure to the upper bound.
-
abstract
def
size: Int
Get the size.
Get the size. May be 0 or 1 for non-collection types.
-
abstract
def
withSize(newSize: Int): Sized
Copy this structure, but update the size.
-
abstract
def
zip(f: (Int, Int) ⇒ Int, other: Sized): Sized
Zip two structures into one.
Zip two structures into one. Combine matching sizes into one size with a function.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- final def +(v: Int): Sized
-
final
def
+(other: Sized): Sized
Add (e.g.
Add (e.g. for appending lists)
- final def -(v: Int): Sized
-
final
def
-(other: Sized): Sized
Subtract (e.g.
Subtract (e.g. for removing elements from lists)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
max(other: Sized): Sized
Take the maximum (e.g.
Take the maximum (e.g. for merge or ite)
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )