Class Organisation
java.lang.Object
org.apache.creadur.whisker.model.Organisation
- All Implemented Interfaces:
Comparable<Organisation>
Describes a group or individual with responsibility for
upstream distributions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(Organisation other) booleangetId()Gets an identifier for this group or individual with responsibility for upstream distributions.getName()Gets a name for this group or individual suitable for presentation.getURL()Gets a locator for the home of this group or individual.inthashCode()storeIn(Map<String, Organisation> organisationsById) Stores this organisation by id.toString()
-
Constructor Details
-
Organisation
Constructs an instance.- Parameters:
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 null
-
-
Method Details
-
storeIn
Stores this organisation by id.- Parameters:
organisationsById- not null- Returns:
- this organisation
-
getName
Gets a name for this group or individual suitable for presentation.- Returns:
- not null
-
getURL
-
getId
Gets an identifier for this group or individual with responsibility for upstream distributions.- Returns:
- not null
-
hashCode
-
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Organisation>- See Also:
-
toString
-