public final class API extends Object
Modifier and Type | Class and Description |
---|---|
static class |
API.Builder |
Constructor and Description |
---|
API(Iterable<? extends Archive> archives,
Iterable<? extends Archive> supplementaryArchives) |
Modifier and Type | Method and Description |
---|---|
static API.Builder |
builder() |
Archive.Role |
getArchiveRole(Archive archive)
Returns the role of the archive in the API.
|
Iterable<? extends Archive> |
getArchives() |
Iterable<? extends Archive> |
getSupplementaryArchives()
The set of archives that somehow supplement the main ones (for example they contain
definitions used in the main archives).
|
static API.Builder |
of(Archive... archives) |
static API.Builder |
of(Iterable<? extends Archive> archives) |
String |
toString() |
public API(@Nonnull Iterable<? extends Archive> archives, @Nullable Iterable<? extends Archive> supplementaryArchives)
archives
- the archivessupplementaryArchives
- the supplemenatry archivesgetArchives()
,
getSupplementaryArchives()
public static API.Builder builder()
public static API.Builder of(Archive... archives)
public static API.Builder of(Iterable<? extends Archive> archives)
@Nonnull public Iterable<? extends Archive> getArchives()
@Nullable public Iterable<? extends Archive> getSupplementaryArchives()
public Archive.Role getArchiveRole(Archive archive)
archive
- the archive to checkCopyright © 2014-2020 Lukas Krejci. All Rights Reserved.