public class ImageName extends Object implements Serializable, Comparable<ImageName>
| Constructor and Description |
|---|
ImageName(String name)
Create an image name from a string in the standard image name format.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ImageName other) |
boolean |
equals(Object obj) |
Controller |
getController()
Get the controller that initiated the image
|
LocalDate |
getDate()
Get the data of the image.
|
String |
getDateString()
Get the formatted date of the image
|
int |
getNumber()
Get the image sequence number
|
String |
getNumberString()
Get the formatted image number
|
Source |
getSource()
Get the source of the image
|
int |
getSourceIndex()
Get the source index (or 0 if no source index)
|
String |
getSourceWithIndex() |
int |
hashCode() |
String |
toString() |
public ImageName(String name)
name - The string to parseIllegalArgumentException - if the string is not a valid image namepublic Source getSource()
public int getSourceIndex()
public String getSourceWithIndex()
public Controller getController()
public LocalDate getDate()
public String getDateString()
public int getNumber()
public String getNumberString()
public int compareTo(ImageName other)
compareTo in interface Comparable<ImageName>Copyright © 2023 LSST. All rights reserved.