Group

class Group<T>(name: String)

A group of members.

This class has no useful logic; it's just a documentation example.

See also

Parameters

T

the type of a member in this group.

Constructors

Group
Link copied to clipboard
fun Group(name: String)

Creates an empty group.

Functions

add
Link copied to clipboard
fun add(member: T): Int

Adds a member to this group.

Properties

name
Link copied to clipboard
val name: String

the name of this group.