Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/AnyRef

AnyRef

scala.AnyRef
classAnyRef

ClassAnyRef is the root class of allreference types. All types except the value types descend from this class.

Attributes

Graph
Known subtypes
trait ()=>R
traitReference[T]
classSoftReference[T]
classWeakReference[T]
traitT1=>R
traitSetOps[A,CC,C]
traitSetOps[A,CC,C]
traitSet[A]
classAbstractSet[A]
classBitSet
classBitSet1
classBitSet2
classBitSetN
classHashSet[A]
classListSet[A]
classSet1[A]
classSet2[A]
classSet3[A]
classSet4[A]
classTreeSet[A]
traitSortedSet[A]
traitSortedSetOps[A,CC,C]
traitStrictOptimizedSetOps[A,CC,C]
traitSetOps[A,CC,C]
classHashSet[A]
classLinkedHashSet[A]
traitSet[A]
classAbstractSet[A]
classBitSet
classTreeSet[A]
traitSortedSet[A]
traitSortedSetOps[A,CC,C]
traitSet[A]
classAbstractSet[A]
traitSortedSet[A]
traitBitSet
traitSortedSetOps[A,CC,C]
traitBitSetOps[C]
traitSortedSetFactoryDefaults[A,CC,WithFilterCC]
traitStrictOptimizedSetOps[A,CC,C]
classFromJavaFunction[T,R]
classAbstractFunction1[T1,R]
classFrom<:<To
classFrom=:=To
classConversion[T,U]
traitPartialFunction[A,B]
traitMapOps[K,V,CC,C]
traitMapOps[K,V,CC,C]
traitMap[K,V]
classAbstractMap[K,V]
classHashMap[K,V]
classIntMap[T]
classListMap[K,V]
classLongMap[T]
classMap1[K,V]
classMap2[K,V]
classMap3[K,V]
classMap4[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classTreeMap[K,V]
classTreeSeqMap[K,V]
classVectorMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSortedMapOps[K,V,CC,C]
traitStrictOptimizedMapOps[K,V,CC,C]
traitMapOps[K,V,CC,C]
classTrieMap[K,V]
classAnyRefMap[K,V]
classHashMap[K,V]
classLinkedHashMap[K,V]
classListMap[K,V]
classLongMap[V]
traitMap[K,V]
traitMap[K,V]
classAbstractMap[K,V]
classWithDefault[K,V]
classWithDefault[K,V]
classOpenHashMap[Key,Value]
classTreeMap[K,V]
traitMultiMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitSortedMapOps[K,V,CC,C]
traitMap[K,V]
classAbstractMap[K,V]
traitDefaultMap[K,V]
traitSeqMap[K,V]
traitSortedMap[K,V]
traitMapFactoryDefaults[K,V,CC,WithFilterCC]
classWeakHashMap[K,V]
traitMapView[K,V]
classAbstractMapView[K,V]
classFilter[K,V]
classFilterKeys[K,V]
classId[K,V]
classMapValues[K,V,W]
classTapEach[K,V,U]
traitSortedMapFactoryDefaults[K,V,CC,WithFilterCC,UnsortedCC]
traitSortedMapOps[K,V,CC,C]
traitStrictOptimizedMapOps[K,V,CC,C]
traitSeq[A]
traitSeq[A]
classAbstractSeq[A]
classArraySeq[A]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
classLazyList[A]
classList[A]
class::[A]
objectNil
classNumericRange[T]
classExclusive[T]
classInclusive[T]
classQueue[A]
classRange
classExclusive
classInclusive
classStream[A]
classCons[A]
objectEmpty
classVector[A]
traitIndexedSeq[A]
traitLinearSeq[A]
traitSeq[A]
classAbstractSeq[A]
classArrayBuffer[A]
classArrayDeque[A]
classQueue[A]
classStack[A]
classListBuffer[A]
classArraySeq[T]
classofBoolean
classofByte
classofChar
classofDouble
classofFloat
classofInt
classofLong
classofRef[T]
classofShort
classofUnit
traitBuffer[A]
traitIndexedBuffer[A]
traitIndexedSeq[T]
classAccumulator[A,CC,C]
classAbstractSeq[A]
traitIndexedSeq[A]
traitLinearSeq[A]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10)=>R
classAbstractFunction10[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11)=>R
classAbstractFunction11[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12)=>R
classAbstractFunction12[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13)=>R
classAbstractFunction13[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14)=>R
classAbstractFunction14[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15)=>R
classAbstractFunction15[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16)=>R
classAbstractFunction16[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17)=>R
classAbstractFunction17[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18)=>R
classAbstractFunction18[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19)=>R
classAbstractFunction19[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,R]
trait (T1,T2)=>R
classFromJavaBiFunction[T,U,R]
classAbstractFunction2[T1,T2,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20)=>R
classAbstractFunction20[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21)=>R
classAbstractFunction21[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22)=>R
classAbstractFunction22[T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,R]
trait (T1,T2,T3)=>R
classAbstractFunction3[T1,T2,T3,R]
trait (T1,T2,T3,T4)=>R
classAbstractFunction4[T1,T2,T3,T4,R]
trait (T1,T2,T3,T4,T5)=>R
classAbstractFunction5[T1,T2,T3,T4,T5,R]
trait (T1,T2,T3,T4,T5,T6)=>R
classAbstractFunction6[T1,T2,T3,T4,T5,T6,R]
trait (T1,T2,T3,T4,T5,T6,T7)=>R
classAbstractFunction7[T1,T2,T3,T4,T5,T6,T7,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8)=>R
classAbstractFunction8[T1,T2,T3,T4,T5,T6,T7,T8,R]
trait (T1,T2,T3,T4,T5,T6,T7,T8,T9)=>R
classAbstractFunction9[T1,T2,T3,T4,T5,T6,T7,T8,T9,R]
Show all

Members list

Value members

Concrete methods

final infixdefeq(x$0:Object):Boolean

Tests whether the argument (that) is a reference to the receiver object (this).

Tests whether the argument (that) is a reference to the receiver object (this).

Theeq method implements anequivalence relation on non-null instances ofAnyRef, and has three additional properties:

  • It is consistent: for any non-null instancesx andy of typeAnyRef, multiple invocations ofx.eq(y) consistently returnstrue or consistently returnsfalse.

  • For any non-null instancex of typeAnyRef,x.eq(null) andnull.eq(x) returnsfalse.

  • null.eq(null) returnstrue.

When overriding theequals orhashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

Value parameters

that

the object to compare against this object for reference equality.

Attributes

Returns

true if the argument is a reference to the receiver object;false otherwise.

final infixdefne(x$0:Object):Boolean

Equivalent to!(this eq that).

Equivalent to!(this eq that).

Value parameters

that

the object to compare against this object for reference equality.

Attributes

Returns

true if the argument is not a reference to the receiver object;false otherwise.

finaldefnotify():Unit

Wakes up a single thread that is waiting on the receiver object's monitor.

Wakes up a single thread that is waiting on the receiver object's monitor.

Attributes

Note

not specified by SLS as a member of AnyRef

finaldefnotifyAll():Unit

Wakes up all threads that are waiting on the receiver object's monitor.

Wakes up all threads that are waiting on the receiver object's monitor.

Attributes

Note

not specified by SLS as a member of AnyRef

finaldefsynchronized[X0](x$0:X0):X0

Executes the code inbody with an exclusive lock onthis.

Executes the code inbody with an exclusive lock onthis.

Value parameters

body

the code to execute

Attributes

Returns

the result ofbody

finaldefwait(x$0:Long):Unit

Value parameters

timeout

the maximum time to wait in milliseconds.

Attributes

Note

not specified by SLS as a member of AnyRef

finaldefwait(x$0:Long,x$1:Int):Unit

Value parameters

nanos

additional time, in nanoseconds range 0-999999.

timeout

the maximum time to wait in milliseconds.

Attributes

Note

not specified by SLS as a member of AnyRef

In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp