t

io.github.setl.internal

HasRegistry

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()
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HasRegistry
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clearRegistry(): Unit

    Clear the registry

    Clear the registry

    Attributes
    protected
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. 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

  12. def getRegistry: ListMap[UUID, T]

    Return the registry

  13. def getRegistryLength: Long

    Return the number of items in the current registry

  14. 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

  15. 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

  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isRegistryEmpty: Boolean

    Return true if the registry is empty, false otherwise

  19. def lastRegisteredItem: Option[T]

    Return the last registered item

    Return the last registered item

    returns

    if the registry is empty, None will be returned

  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. 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( ... )
  24. def registerNewItems(items: Iterable[T]): Unit

    Register multiple items

    Register multiple items

    items

    an io.github.setl.internal.Identifiable object

    Attributes
    protected
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped