Class Source


  • public class Source
    extends Object
    A representation of a source. Sources have no structure but are just id of a set which is defined in the application.

    Sources are Value Objects.

    Source ids should be human readable, start with lower case and use camel casing

    Author:
    bratseth
    • Constructor Detail

      • Source

        public Source​(String id)
        Creates an intent from a string id
    • Method Detail

      • getId

        public String getId()
        Returns the id of this source, never null
      • hashCode

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

        public String toString()
        Returns the id of this source
        Overrides:
        toString in class Object