Trait

io.github.setl.internal

HasRegistry

Related Doc: package internal

Permalink

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clearRegistry(): Unit

    Permalink

    Clear the registry

    Clear the registry

    Attributes
    protected
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def getRegisteredItem(uuid: UUID): Option[T]

    Permalink

    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]

    Permalink

    Return the registry

  13. def getRegistryLength: Long

    Permalink

    Return the number of items in the current registry

  14. def hasRegisteredItem(uuid: UUID): Boolean

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def isRegistryEmpty: Boolean

    Permalink

    Return true if the registry is empty, false otherwise

  19. def lastRegisteredItem: Option[T]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def registerNewItem(item: T): Unit

    Permalink

    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

    Permalink

    Register multiple items

    Register multiple items

    items

    an io.github.setl.internal.Identifiable object

    Attributes
    protected
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped