20 lines
517 B
Kotlin
20 lines
517 B
Kotlin
/**
|
|
* A group of *members*.
|
|
* @author A Programmer.
|
|
* @since version 1.1.51.
|
|
*
|
|
* This class has no useful logic; it's just a documentation example.
|
|
*
|
|
* @param T the type of a member in this group.
|
|
* @property name the name of this group.
|
|
* @constructor Creates an empty group.
|
|
*/
|
|
class Group<T>(val name: String) {
|
|
/**
|
|
* Adds a [member] to this group.
|
|
* @throws AddException if the member can't be added.
|
|
* @return the new size of the group.
|
|
*/
|
|
fun add(member: T): Int { ... }
|
|
}
|