Class Organisation

java.lang.Object
org.apache.creadur.whisker.model.Organisation
All Implemented Interfaces:
Comparable<Organisation>

public class Organisation extends Object implements Comparable<Organisation>
Describes a group or individual with responsibility for upstream distributions.
  • Constructor Details

    • Organisation

      public Organisation(String id, String name, String url)
      Constructs an instance.
      Parameters:
      id - identifies this group or individual with responsibility for upstream distributions, not null
      name - a name for this group or individual suitable for presentation, not null
      url - a locator for the home of this group or individual, not null
  • Method Details

    • storeIn

      public Organisation storeIn(Map<String,Organisation> organisationsById)
      Stores this organisation by id.
      Parameters:
      organisationsById - not null
      Returns:
      this organisation
    • getName

      public String getName()
      Gets a name for this group or individual suitable for presentation.
      Returns:
      not null
    • getURL

      public String getURL()
      Gets a locator for the home of this group or individual.
      Returns:
      not null
    • getId

      public String getId()
      Gets an identifier for this group or individual with responsibility for upstream distributions.
      Returns:
      not null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(Organisation other)
      Specified by:
      compareTo in interface Comparable<Organisation>
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object