Class License

  • All Implemented Interfaces:
    java.io.Serializable

    @ThreadSafe
    public class License
    extends java.lang.Object
    implements java.io.Serializable
    Author:
    jeremy long
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      License()
      Constructs a new license object.
      License​(java.lang.String name, java.lang.String url)
      Constructs a new license.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Generated equals method to perform equality check.
      java.lang.String getName()
      Get the value of name.
      java.lang.String getUrl()
      Get the value of URL.
      int hashCode()
      Generated hashCode implementation.
      void setName​(java.lang.String name)
      Set the value of name.
      void setUrl​(java.lang.String url)
      Set the value of URL.
      java.lang.String toString()
      Generated toString.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • License

        public License()
        Constructs a new license object.
      • License

        public License​(java.lang.String name,
                       java.lang.String url)
        Constructs a new license.
        Parameters:
        name - the name of the license
        url - the license URL
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Get the value of URL.
        Returns:
        the value of URL
      • setUrl

        public void setUrl​(java.lang.String url)
        Set the value of URL.
        Parameters:
        url - new value of URL
      • getName

        public java.lang.String getName()
        Get the value of name.
        Returns:
        the value of name
      • setName

        public void setName​(java.lang.String name)
        Set the value of name.
        Parameters:
        name - new value of name
      • hashCode

        public int hashCode()
        Generated hashCode implementation.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • equals

        public boolean equals​(java.lang.Object obj)
        Generated equals method to perform equality check.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to check
        Returns:
        true if the objects are equal; otherwise false
      • toString

        public java.lang.String toString()
        Generated toString.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string representation of the license