Package com.helger.base.thirdparty
Class CustomLicense
java.lang.Object
com.helger.base.thirdparty.CustomLicense
- All Implemented Interfaces:
IHasID<String>,IHasDisplayName,ILicense,IHasVersion
Represents a custom license.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionCustomLicense(@NonNull @Nonempty String sID, @NonNull @Nonempty String sName, @Nullable Version aVersion, @Nullable String sURL) Create a custom license. -
Method Summary
-
Constructor Details
-
CustomLicense
public CustomLicense(@Nonempty @NonNull @Nonempty String sID, @Nonempty @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 license. Neither
nullnor empty.
-
getVersion
- Specified by:
getVersionin interfaceIHasVersion- Returns:
- The version of this license. May be
null.
-
getURL
-
equals
-
hashCode
public int hashCode() -
toString
-