Packages

case class Principal(name: Name, facebookLikes: Int) extends Product with Serializable

Represents a principal entity involved in a production. This entity is characterized by its name and the number of Facebook likes it has received. Typically, the Principal class is used to model contributors such as actors, directors, or other individuals associated with a movie or production.

name

the Name instance representing the principal's full name, which includes fields for the first name, middle name (optional), last name, and suffix (optional).

facebookLikes

the number of Facebook likes associated with the principal, which can serve as a measure of the individual's popularity or reach on social media.

Annotations
@deprecated
Deprecated

(Since version 1.7.0) Example code: it moves out of the library, into the tests, in 2.0.0

Example:
  1. val principal = Principal(Name("John", Some("A."), "Doe", None), 1200)
    println(principal) // Output: John A. Doe (1200 likes)
Note

The Principal class is part of a broader model for describing movies or productions, and may be used in conjunction with other classes such as Movie or Production. Additionally, a default instance of Principal may be provided in an accompanying companion object for known default values.

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Principal
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Principal(name: Name, facebookLikes: Int)

    name

    the Name instance representing the principal's full name, which includes fields for the first name, middle name (optional), last name, and suffix (optional).

    facebookLikes

    the number of Facebook likes associated with the principal, which can serve as a measure of the individual's popularity or reach on social media.

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. val facebookLikes: Int
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. val name: Name
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. def productElementNames: Iterator[String]
    Definition Classes
    Product
  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    Principal → AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped