public class StreetsideSequence extends Object
StreetsideAbstractImage
objects.StreetsideAbstractImage
Modifier and Type | Field and Description |
---|---|
private long |
cd
Epoch time when the sequence was created
|
private String |
id
Unique identifier.
|
private List<StreetsideAbstractImage> |
images
The images in the sequence.
|
private double |
la |
private double |
lo |
private UserProfile |
user |
Constructor and Description |
---|
StreetsideSequence()
No argument constructor for StreetsideSequence - necessary for JSON serialization
|
StreetsideSequence(String id) |
StreetsideSequence(String id,
double la,
double lo) |
StreetsideSequence(String id,
double la,
double lo,
long ca) |
StreetsideSequence(String id,
Long ca) |
Modifier and Type | Method and Description |
---|---|
void |
add(Collection<? extends StreetsideAbstractImage> images)
Adds a set of
StreetsideAbstractImage objects to the database. |
void |
add(StreetsideAbstractImage image)
Adds a new
StreetsideAbstractImage object to the database. |
long |
getCd()
Returns the Epoch time when the sequence was captured.
|
String |
getId()
Returns the unique identifier of the sequence.
|
List<StreetsideAbstractImage> |
getImages()
Returns all
StreetsideAbstractImage objects contained by this
object. |
double |
getLa() |
double |
getLo() |
UserProfile |
getUser() |
StreetsideAbstractImage |
next(StreetsideAbstractImage image)
Returns the next
StreetsideAbstractImage in the sequence of a given
StreetsideAbstractImage object. |
StreetsideAbstractImage |
previous(StreetsideAbstractImage image)
Returns the previous
StreetsideAbstractImage in the sequence of a
given StreetsideAbstractImage object. |
void |
remove(StreetsideAbstractImage image)
Removes a
StreetsideAbstractImage object from the database. |
void |
setId(String id) |
void |
setLa(double la) |
void |
setLo(double lo) |
private String id
StreetsideImage
sequences.private UserProfile user
private double la
private double lo
private long cd
private List<StreetsideAbstractImage> images
public StreetsideSequence(String id, Long ca)
public StreetsideSequence(String id, double la, double lo)
public StreetsideSequence()
public StreetsideSequence(String id, double la, double lo, long ca)
public StreetsideSequence(String id)
public void add(StreetsideAbstractImage image)
StreetsideAbstractImage
object to the database.image
- The StreetsideAbstractImage
object to be addedpublic void add(Collection<? extends StreetsideAbstractImage> images)
StreetsideAbstractImage
objects to the database.images
- The set of StreetsideAbstractImage
objects to be added.public StreetsideAbstractImage next(StreetsideAbstractImage image)
StreetsideAbstractImage
in the sequence of a given
StreetsideAbstractImage
object.image
- The StreetsideAbstractImage
object whose next image is
going to be returned.StreetsideAbstractImage
object in the sequence.IllegalArgumentException
- if the given StreetsideAbstractImage
object doesn't belong
the this sequence.public StreetsideAbstractImage previous(StreetsideAbstractImage image)
StreetsideAbstractImage
in the sequence of a
given StreetsideAbstractImage
object.image
- The StreetsideAbstractImage
object whose previous image is
going to be returned.StreetsideAbstractImage
object in the sequence.IllegalArgumentException
- if the given StreetsideAbstractImage
object doesn't belong
the this sequence.public void remove(StreetsideAbstractImage image)
StreetsideAbstractImage
object from the database.image
- The StreetsideAbstractImage
object to be removed.public double getLa()
public void setLa(double la)
la
- the la to setpublic double getLo()
public void setLo(double lo)
lo
- the lo to setpublic long getCd()
public List<StreetsideAbstractImage> getImages()
StreetsideAbstractImage
objects contained by this
object.List
object containing all the
StreetsideAbstractImage
objects that are part of the
sequence.public String getId()
String
containing the unique identifier of the sequence.
null means that the sequence has been created locally for imported
images.public UserProfile getUser()