public interface ILicense extends IHeaderMatcher, Comparable<ILicense>
Modifier and Type | Interface and Description |
---|---|
static interface |
ILicense.Builder
A builder for ILicense instances.
|
Modifier and Type | Method and Description |
---|---|
static ILicense.Builder |
builder()
Gets a builder for licenses.
|
default int |
compareTo(ILicense other) |
static boolean |
equals(ILicense license1,
Object o)
A default implementation of equals.
|
default String |
getFamilyName()
Gets the name of the family that this license if part of.
|
ILicenseFamily |
getLicenseFamily()
Gets the license family.
|
IHeaderMatcher |
getMatcher()
Get the header matcher for this license.
|
String |
getName()
Returns the name of this license.
|
String |
getNote()
Gets the note associated with the license.
|
static int |
hash(ILicense license)
A default implementatin of a License hash
|
getDescription, getId, matches, reset
ILicenseFamily getLicenseFamily()
String getNote()
String getName()
default String getFamilyName()
IHeaderMatcher getMatcher()
default int compareTo(ILicense other)
compareTo
in interface Comparable<ILicense>
static int hash(ILicense license)
license
- the license to hashstatic boolean equals(ILicense license1, Object o)
license1
- The license to check for equality.o
- the object to check for equality to.static ILicense.Builder builder()
Copyright © 2006–2024 Apache Software Foundation. All rights reserved.