public class LocationSet extends AbstractSet<Location> implements Serializable
| Constructor and Description |
|---|
LocationSet()
Creates an empty location set
|
LocationSet(BitSet bitset)
Create a location set based on DAQ location index based BitSet.
|
LocationSet(Set<Location> input)
Creates a location set which is a copy of the provided set
|
LocationSet(String locations)
Creates a LocationSet from a comma delimited String.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Location location) |
static LocationSet |
all()
LocationSet for all locations.
|
int[] |
asIntArray()
Returns location set as list of integers using Owen's numbering scheme.
|
void |
clear() |
BitSet |
getBitSet()
Return the DAQ location index based BitSet
|
Iterator<Location> |
iterator() |
static LocationSet |
of(String... location)
Creates a LocationSet from a list of strings.
|
boolean |
remove(Object location) |
int |
size() |
equals, hashCode, removeAlladdAll, contains, containsAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic LocationSet()
public LocationSet(String locations)
locations - The locationsLocation.of(java.lang.String)public LocationSet(Set<Location> input)
input - The location set to copypublic LocationSet(BitSet bitset)
bitset - public static LocationSet all()
public static LocationSet of(String... location)
location - The location(s)Location.of(java.lang.String)public BitSet getBitSet()
public boolean add(Location location)
add in interface Collection<Location>add in interface Set<Location>add in class AbstractCollection<Location>public void clear()
clear in interface Collection<Location>clear in interface Set<Location>clear in class AbstractCollection<Location>public boolean remove(Object location)
remove in interface Collection<Location>remove in interface Set<Location>remove in class AbstractCollection<Location>public int size()
size in interface Collection<Location>size in interface Set<Location>size in class AbstractCollection<Location>public int[] asIntArray()
Copyright © 2023 LSST. All rights reserved.