Class SeedList

    • Constructor Detail

      • SeedList

        public SeedList​(String name,
                        String seedsAsString)
        Create new seedlist. Helper constructor that takes the seeds as a newline separated string.
        Parameters:
        name - the name of the new seedlist
        seedsAsString - the seeds
        Throws:
        ArgumentNotValid - if name is null or empty or seeds are null. Empty seeds are allowed.
      • SeedList

        public SeedList​(String name,
                        List<String> seeds)
        Create new seedlist.
        Parameters:
        name - the name of the new seedlist
        seeds - the seeds
        Throws:
        ArgumentNotValid - if the arguments are null or empty strings
    • Method Detail

      • getSeeds

        public List<String> getSeeds()
        Gets all seeds in a list.
        Returns:
        The seeds
      • getSeedsAsString

        public String getSeedsAsString()
        Gets the seeds. Seeds are separated by newline,
        Returns:
        the seedlist as a String
      • getName

        public String getName()
        Get the name of this seedlist.
        Specified by:
        getName in interface Named
        Returns:
        The name.
      • getComments

        public String getComments()
        Get the comments of this seedlist.
        Specified by:
        getComments in interface Named
        Returns:
        The comments.
      • setComments

        public void setComments​(String s)
        Set the comments for this list.
        Parameters:
        s - User-entered free-form comments.
      • toString

        public String toString()
        Returns a human-readable representation of the seeds.
        Overrides:
        toString in class Object
        Returns:
        A readable string
      • equals

        public boolean equals​(Object o)
        Auto generated by IntelliJ IDEA.
        Overrides:
        equals in class Object
        Parameters:
        o - The object to compare with
        Returns:
        Whether they are equal
      • hashCode

        public int hashCode()
        Auto generated by IntelliJ IDEA.
        Overrides:
        hashCode in class Object
        Returns:
        hashcode