public class FeedScopedId extends Object implements Serializable, Comparable<FeedScopedId>
Modifier and Type | Field and Description |
---|---|
static char |
ID_SEPARATOR |
Constructor and Description |
---|
FeedScopedId() |
FeedScopedId(String agencyId,
String id) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FeedScopedId o) |
static FeedScopedId |
convertFromString(String value)
Given an id of the form "agencyId_entityId", parses into a
FeedScopedId id object. |
static FeedScopedId |
convertFromString(String value,
char separator)
Given an id of the form "agencyId_entityId", parses into a
FeedScopedId id object. |
static String |
convertToString(FeedScopedId aid)
Given an
FeedScopedId object, creates a string representation of the
form "agencyId_entityId" |
boolean |
equals(Object obj) |
String |
getAgencyId() |
String |
getId() |
int |
hashCode() |
boolean |
hasValues() |
void |
setAgencyId(String agencyId) |
void |
setId(String id) |
String |
toString() |
public static final char ID_SEPARATOR
public String getAgencyId()
public void setAgencyId(String agencyId)
public String getId()
public void setId(String id)
public boolean hasValues()
public int compareTo(FeedScopedId o)
compareTo
in interface Comparable<FeedScopedId>
public static FeedScopedId convertFromString(String value, char separator)
FeedScopedId
id object.value
- id of the form "agencyId_entityId"public static FeedScopedId convertFromString(String value) throws IllegalArgumentException
FeedScopedId
id object.value
- id of the form "agencyId_entityId"IllegalArgumentException
- if the id cannot be parsedpublic static String convertToString(FeedScopedId aid)
FeedScopedId
object, creates a string representation of the
form "agencyId_entityId"aid
- an id objectCopyright © 2019. All rights reserved.