@Value.Immutable
public interface Dependency
| Modifier and Type | Interface and Description |
|---|---|
static class |
Dependency.Builder |
static class |
Dependency.Type |
| Modifier and Type | Method and Description |
|---|---|
static Dependency |
extension(String id) |
static Dependency |
from(Dependency.Type type,
String id) |
String |
getId()
The dependency id such as a maven coordinate, and extension id, etc.
|
Dependency.Type |
getType()
The dependency type;
|
static Dependency |
icon(String id) |
default boolean |
isExtension() |
default boolean |
isExtensionTag() |
default boolean |
isIcon() |
default boolean |
isMaven() |
default boolean |
isOfType(Dependency.Type type) |
static Dependency |
libraryTag(String id) |
static Dependency |
maven(String id) |
Dependency.Type getType()
String getId()
default boolean isOfType(Dependency.Type type)
default boolean isMaven()
default boolean isExtension()
default boolean isExtensionTag()
default boolean isIcon()
static Dependency from(Dependency.Type type, String id)
static Dependency maven(String id)
static Dependency extension(String id)
static Dependency libraryTag(String id)
static Dependency icon(String id)
Copyright © 2016–2019 Red Hat. All rights reserved.