@Immutable public final class ThirdPartyModule extends Object implements IThirdPartyModule
IThirdPartyModule interface.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_OPTIONAL
By default a third-party module is not optional
|
| Constructor and Description |
|---|
ThirdPartyModule(IThirdPartyModule aOther,
boolean bOptional) |
ThirdPartyModule(String sDisplayName,
String sCopyrightOwner,
ILicense aLicense) |
ThirdPartyModule(String sDisplayName,
String sCopyrightOwner,
ILicense aLicense,
boolean bOptional) |
ThirdPartyModule(String sDisplayName,
String sCopyrightOwner,
ILicense aLicense,
Version aVersion,
String sWebsiteURL) |
ThirdPartyModule(String sDisplayName,
String sCopyrightOwner,
ILicense aLicense,
Version aVersion,
String sWebsiteURL,
boolean bOptional) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ThirdPartyModule |
getAsNonOptionalCopy() |
ThirdPartyModule |
getAsOptionalCopy() |
String |
getCopyrightOwner() |
String |
getDisplayName() |
ILicense |
getLicense() |
Version |
getVersion() |
String |
getWebSiteURL() |
int |
hashCode() |
boolean |
isOptional() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComparatorCollatingpublic static final boolean DEFAULT_OPTIONAL
public ThirdPartyModule(@Nonnull IThirdPartyModule aOther, boolean bOptional)
public ThirdPartyModule(@Nonnull @Nonempty String sDisplayName, @Nonnull @Nonempty String sCopyrightOwner, @Nonnull ILicense aLicense)
public ThirdPartyModule(@Nonnull @Nonempty String sDisplayName, @Nonnull @Nonempty String sCopyrightOwner, @Nonnull ILicense aLicense, boolean bOptional)
public ThirdPartyModule(@Nonnull @Nonempty String sDisplayName, @Nonnull @Nonempty String sCopyrightOwner, @Nonnull ILicense aLicense, @Nullable Version aVersion, @Nullable String sWebsiteURL)
@Nonnull @Nonempty public String getDisplayName()
getDisplayName in interface IHasDisplayNamenull.@Nonnull @Nonempty public String getCopyrightOwner()
getCopyrightOwner in interface IThirdPartyModulenull.@Nonnull public ILicense getLicense()
getLicense in interface IThirdPartyModulenull.@Nullable public Version getVersion()
getVersion in interface IThirdPartyModulegetVersion in interface IHasVersionnull
because this means another place where the version number needs to
be maintained.@Nullable public String getWebSiteURL()
getWebSiteURL in interface IThirdPartyModulenull.public boolean isOptional()
isOptional in interface IThirdPartyModuletrue if this is an optional thirdparty module,
false if it is required.@Nonnull public ThirdPartyModule getAsOptionalCopy()
getAsOptionalCopy in interface IThirdPartyModulethis is returned.@Nonnull public ThirdPartyModule getAsNonOptionalCopy()
getAsNonOptionalCopy in interface IThirdPartyModulethis is returned.Copyright © 2014–2022 Philip Helger. All rights reserved.