public final class JkScopeMapping
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JkScopeMapping.Partial
Partial object to construct a scope mapping.
|
Modifier and Type | Field and Description |
---|---|
static JkScopeMapping |
ALL_TO_DEFAULT
A scope mapping active for any scope that map to the default scope of the dependencies.
|
Modifier and Type | Method and Description |
---|---|
JkScopeMapping.Partial |
and(java.lang.Iterable<JkScope> from) |
JkScopeMapping.Partial |
and(JkScope... from)
Returns a partial object to construct a scope mapping identical to this one but augmented with the specified
mapping.
|
boolean |
equals(java.lang.Object obj) |
java.util.Set<JkScope> |
getEntries()
Returns all the scopes declared on the left side of this scope mapping.
|
java.util.Set<java.lang.String> |
getMappedScopes(JkScope sourceScope)
Returns the right side scope mapped to the specified left scope.
|
int |
hashCode() |
JkScopeMapping |
minus(JkScope scope) |
static JkScopeMapping |
of()
Creates an empty scope mapping.
|
static JkScopeMapping.Partial |
of(java.lang.Iterable<JkScope> scopes)
Returns a partially constructed mapping specifying only scope entries and
willing for the mapping values.
|
static JkScopeMapping.Partial |
of(JkScope scope,
JkScope... others)
Returns a partially constructed mapping specifying only scope entries and
willing for the mapping values.
|
static JkScopeMapping.Partial |
of(java.lang.String scope,
java.lang.String... others)
Returns a partially constructed mapping specifying only scope entries and
willing for the mapping values.
|
java.lang.String |
toString() |
public static final JkScopeMapping ALL_TO_DEFAULT
public static JkScopeMapping.Partial of(JkScope scope, JkScope... others)
public static JkScopeMapping.Partial of(java.lang.String scope, java.lang.String... others)
public static JkScopeMapping.Partial of(java.lang.Iterable<JkScope> scopes)
public static JkScopeMapping of()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public JkScopeMapping minus(JkScope scope)
public JkScopeMapping.Partial and(JkScope... from)
public JkScopeMapping.Partial and(java.lang.Iterable<JkScope> from)
and(JkScope...)
public java.util.Set<java.lang.String> getMappedScopes(JkScope sourceScope)
public java.util.Set<JkScope> getEntries()
public java.lang.String toString()
toString
in class java.lang.Object