|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.spi.format.Formats
public class Formats
Represents collection of formats.
| Field Summary | |
|---|---|
static int |
DEFAULT_SIZE
|
| Constructor Summary | |
|---|---|
Formats()
Creates new collection with default size; |
|
Formats(int size)
Creates collection with specified size. |
|
| Method Summary | |
|---|---|
void |
add(Format format)
Adds specified format to this collection. |
void |
addAll(Formats other)
Adds multiple formats. |
void |
clean()
Removes all formats from the collection. |
boolean |
contains(Format format)
Checks that collection has specified format. |
Format |
get(int i)
Gets the collection element. |
void |
intersection(Formats other,
Formats intersection)
Find the intersection between this collection and other |
boolean |
isEmpty()
Checks collection's size. |
void |
remove(Format format)
Removes specified format from this collection. |
int |
size()
Gets the number of formats contained inside collection. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_SIZE
| Constructor Detail |
|---|
public Formats()
public Formats(int size)
size - the size of the collection.| Method Detail |
|---|
public void add(Format format)
format - the format object to be addedpublic void addAll(Formats other)
other - the collection of formats to be added to this collection.public void remove(Format format)
format - the format object to be removed.public Format get(int i)
i - the position of the element in collection
public boolean contains(Format format)
format - the format to be checked
public int size()
public boolean isEmpty()
public void clean()
public void intersection(Formats other,
Formats intersection)
other - the other collectionintersection - the resulting collection.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||