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
Nameinstance 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
val principal = Principal(Name("John", Some("A."), "Doe", None), 1200) println(principal) // Output: John A. Doe (1200 likes)
- Note
The
Principalclass is part of a broader model for describing movies or productions, and may be used in conjunction with other classes such asMovieorProduction. Additionally, a default instance ofPrincipalmay be provided in an accompanying companion object for known default values.
- Alphabetic
- By Inheritance
- Principal
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Principal(name: Name, facebookLikes: Int)
- name
the
Nameinstance 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
- 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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val facebookLikes: Int
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: Name
- 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 productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Principal → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)