public final class DiscoveredResource extends Object implements Comparable<DiscoveredResource>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static Comparator<DiscoveredResource> |
COMPARATOR
The Comparator.
|
static Comparator<List<String>> |
LISTCOMPARATOR
The Comparator of lists.
|
| Constructor and Description |
|---|
DiscoveredResource(String path,
boolean obs,
String title,
List<String> ifdesc,
List<String> rt,
String sz,
List<String> ct)
Construct DiscoveredResource from uri-path and meta coreInfo.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateHashCode()
Calculate the hashcode of this object.
|
int |
compareTo(DiscoveredResource other)
Compare to other DiscoveredResource object.
|
boolean |
equals(Object other)
Indicates whether some other DiscoveredResource object is "equal to" this one.
|
List<String> |
getCt()
Get resource ct values.
|
List<String> |
getIf()
Get resource if values.
|
Boolean |
getObs()
Get resource observable as Boolean.
|
String |
getPath()
Get resource uri-path.
|
List<String> |
getRt()
Get resource rt values.
|
String |
getSz()
Get resource sz.
|
String |
getTitle()
Get resource title.
|
int |
hashCode()
Get the hashcode of this object.
|
boolean |
isObs()
Is resource observable.
|
String |
toString()
Convert to string.
|
public static final Comparator<List<String>> LISTCOMPARATOR
public static final Comparator<DiscoveredResource> COMPARATOR
public DiscoveredResource(String path, boolean obs, String title, List<String> ifdesc, List<String> rt, String sz, List<String> ct)
path - Identifies the resource.obs - Flag indicating the resource is observable (True), or not (False)title - Human readable title of the resource.ifdesc - Interface designators.rt - Resource type designators.sz - Content size estimation of the resource.ct - Content formats of the resource.public String getPath()
public boolean isObs()
public Boolean getObs()
public String getTitle()
public String getSz()
public int compareTo(DiscoveredResource other)
compareTo in interface Comparable<DiscoveredResource>other - The reference DiscoveredResource object with which to compare.public boolean equals(Object other)
protected int calculateHashCode()
Copyright © 2019–2024 Teslanet.nl. All rights reserved.