org.apache.creadur.whisker.model
public class Organisation extends Object implements Comparable<Organisation>
Constructor and Description |
---|
Organisation(String id,
String name,
String url)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Organisation other) |
boolean |
equals(Object obj) |
String |
getId()
Gets an identifier for this group or individual
with responsibility for
upstream distributions.
|
String |
getName()
Gets a name for this group or individual
suitable for presentation.
|
String |
getURL()
Gets a locator for the home of this group
or individual.
|
int |
hashCode() |
Organisation |
storeIn(Map<String,Organisation> organisationsById)
Stores this organisation by id.
|
String |
toString() |
public Organisation(String id, String name, String url)
id
- identifies this group or individual
with responsibility for
upstream distributions, not nullname
- a name for this group or individual
suitable for presentation, not nullurl
- a locator for the home of this group
or individual, not nullpublic Organisation storeIn(Map<String,Organisation> organisationsById)
organisationsById
- not nullpublic String getName()
public String getURL()
public String getId()
public int compareTo(Organisation other)
compareTo
in interface Comparable<Organisation>
Comparable.compareTo(java.lang.Object)
Copyright © 2011-2013 Apache Software Foundation. All Rights Reserved.