Package com.helger.commons.thirdparty
Class CustomLicense
java.lang.Object
com.helger.commons.thirdparty.CustomLicense
- All Implemented Interfaces:
IHasID<String>,IHasDisplayName,ILicense,IHasVersion
Represents a custom license.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionCustomLicense(String sID, String sName, Version aVersion, String sURL) Create a custom license. -
Method Summary
-
Constructor Details
-
CustomLicense
public CustomLicense(@Nonnull @Nonempty String sID, @Nonnull @Nonempty String sName, @Nullable Version aVersion, @Nullable String sURL) Create a custom license.- Parameters:
sID- The ID of the license.sName- The name of the license.aVersion- The version of the license.sURL- The URL of the license.
-
-
Method Details
-
getID
Description copied from interface:IHasIDGet the unique ID of this object. If the type isStringthan the returned value must match an XML NMToken expression (so e.g. no ':' in the ID)! -
getDisplayName
- Specified by:
getDisplayNamein interfaceIHasDisplayName- Returns:
- The display name of this object. Should never be
null.
-
getVersion
- Specified by:
getVersionin interfaceIHasVersion- Returns:
- The version number of the object. No assumption on nullable can be done.
-
getURL
-
equals
-
hashCode
public int hashCode() -
toString
-