Package org.apache.creadur.whisker.model
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
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(Organisation other) boolean
getId()
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.int
hashCode()
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
Gets a locator for the home of this group or individual.- Returns:
- not null
-
getId
Gets an identifier for this group or individual with responsibility for upstream distributions.- Returns:
- not null
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Organisation>
- See Also:
-
toString
-