public class Formats extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SIZE |
| Constructor and Description |
|---|
Formats()
Creates new collection with default size;
|
Formats(int size)
Creates collection with specified size.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public static final int DEFAULT_SIZE
public Formats()
public Formats(int size)
size - the size of the collection.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 collectionpublic boolean contains(Format format)
format - the format to be checkedpublic int size()
public boolean isEmpty()
public void clean()
public void intersection(Formats other, Formats intersection)
other - the other collectionintersection - the resulting collection.Copyright © 2016 TeleStax, Inc.. All Rights Reserved.