Package com.helger.commons.thirdparty
Class CustomLicense
- java.lang.Object
-
- com.helger.commons.thirdparty.CustomLicense
-
- All Implemented Interfaces:
IHasID<String>,IHasDisplayName,ILicense,IHasVersion
@Immutable public class CustomLicense extends Object implements ILicense
Represents a custom license.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description CustomLicense(String sID, String sName, Version aVersion, String sURL)Create a custom license.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDisplayName()StringgetID()Get the unique ID of this object.StringgetURL()VersiongetVersion()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
getID
@Nonnull @Nonempty public String 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
@Nonnull @Nonempty public String getDisplayName()
- Specified by:
getDisplayNamein interfaceIHasDisplayName- Returns:
- The display name of this object. Should never be
null.
-
getVersion
@Nullable public Version getVersion()
- Specified by:
getVersionin interfaceIHasVersion- Returns:
- The version number of the object. No assumption on nullable can be done.
-
-