trait HasRegistry[T <: Identifiable] extends AnyRef
HasUUIDRegistry provide a UUID registry and methods to check if an io.github.setl.internal.Identifiable object already exists in its registry
- Annotations
- @Evolving()
- Alphabetic
- By Inheritance
- HasRegistry
- 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clearRegistry(): Unit
Clear the registry
Clear the registry
- Attributes
- protected
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getRegisteredItem(uuid: UUID): Option[T]
For a given UUID, return the corresponding registered item
For a given UUID, return the corresponding registered item
- uuid
uuid
-
def
getRegistry: ListMap[UUID, T]
Return the registry
-
def
getRegistryLength: Long
Return the number of items in the current registry
-
def
hasRegisteredItem(uuid: UUID): Boolean
Check if the UUID exists in the registry
Check if the UUID exists in the registry
- uuid
an UUID
- returns
true if it already exists in the registry, false otherwise
-
def
hasRegisteredItem(item: Identifiable): Boolean
Check if the Identifiable exists in the registry
Check if the Identifiable exists in the registry
- item
an object that inherit io.github.setl.internal.Identifiable
- returns
true if it already exists in the registry, false otherwise
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isRegistryEmpty: Boolean
Return true if the registry is empty, false otherwise
-
def
lastRegisteredItem: Option[T]
Return the last registered item
Return the last registered item
- returns
if the registry is empty, None will be returned
-
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
registerNewItem(item: T): Unit
Register a new io.github.setl.internal.Identifiable in registry
Register a new io.github.setl.internal.Identifiable in registry
- item
an object that inherit io.github.setl.internal.Identifiable
- returns
true if the given item is registered, false otherwise
- Attributes
- protected
- Annotations
- @throws( ... )
-
def
registerNewItems(items: Iterable[T]): Unit
Register multiple items
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @throws( ... ) @native()