public class SubscriptionArray extends Object
| Constructor and Description |
|---|
SubscriptionArray() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int subscriptionId)
add subscription id to the array
If it's already in the array, the operation has no effect
|
int[] |
getArray() |
boolean |
isEmpty() |
boolean |
remove(int subscriptionId)
Remove the subscriptionId from the array
return true if it has been removed or false if it was not there
|
int |
size() |
String |
toString() |
public void add(int subscriptionId)
subscriptionId - public boolean remove(int subscriptionId)
subscriptionId - public boolean isEmpty()
public int[] getArray()
public int size()
Copyright © 2017 Space Applications Services. All rights reserved.