public final class NamedRef
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description | 
|---|---|
static long | 
serialVersionUID  | 
| Constructor and Description | 
|---|
NamedRef(Ref ref)
Constructs a named reference with null name 
 | 
NamedRef(java.lang.String name, Ref ref)
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(java.lang.Object o)  | 
java.lang.String | 
getName()
Returns the name/label associated with the reference. 
 | 
Ref | 
getRef()
Returns the reference 
 | 
int | 
hashCode()  | 
static java.util.Set<NamedRef> | 
toNamedRef(java.util.Collection<Ref> refs)  | 
static java.util.Set<Ref> | 
toRef(java.util.Collection<NamedRef> namedrefs)
Utility method that returns a set of ref objects derived from the set of named Ref objects. 
 | 
java.lang.String | 
toString()  | 
public static final long serialVersionUID
public NamedRef(Ref ref)
ref - the reference. Cannot be null
public NamedRef(java.lang.String name,
                Ref ref)
name - the name given to this reference. Can be null.ref - the reference. Cannot be nullpublic java.lang.String getName()
public static java.util.Set<Ref> toRef(java.util.Collection<NamedRef> namedrefs)
namedrefs -public java.lang.String toString()
toString in class java.lang.Objectpublic Ref getRef()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object