@Immutable public class CustomLicense extends Object implements ILicense
| Constructor and Description |
|---|
CustomLicense(String sID,
String sName,
Version aVersion,
String sURL)
Create a custom license.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDisplayName() |
String |
getID()
Get the unique ID of this object.
|
String |
getURL() |
Version |
getVersion() |
int |
hashCode() |
String |
toString() |
public CustomLicense(@Nonnull @Nonempty String sID, @Nonnull @Nonempty String sName, @Nullable Version aVersion, @Nullable String sURL)
sID - The ID of the license.sName - The name of the license.aVersion - The version of the license.sURL - The URL of the license.@Nonnull @Nonempty public String getID()
IHasIDString than the
returned value must match an XML NMToken expression (so e.g. no ':' in the
ID)!@Nonnull @Nonempty public String getDisplayName()
getDisplayName in interface IHasDisplayNamenull.@Nullable public Version getVersion()
getVersion in interface IHasVersionnull
.Copyright © 2014–2015 Philip Helger. All rights reserved.