public class Channel extends NamedEntity implements Comparable<Channel>
| Modifier | Constructor and Description |
|---|---|
protected |
Channel() |
|
Channel(int id)
Construct a Channel with the specified id.
|
|
Channel(int id,
String name)
Construct a channel with the specified id and name.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Channel o)
Compares the
ids. |
int |
getId()
Get the unique id of this channel.
|
String |
getName()
Get the name of this channel.
|
void |
setName(String name)
Set the name of this channel.
|
public Channel(int id,
String name)
id - name - public Channel(int id)
name is
set to the String representation of the id.id - protected Channel()
public int getId()
public String getName()
getName in class NamedEntitypublic void setName(String name)
setName in class NamedEntitypublic int compareTo(Channel o)
ids.compareTo in interface Comparable<Channel>Copyright © 2015–2021 Fiji. All rights reserved.