public interface WeightNode extends ScopedNode<WeightNode,WeightNode.Builder>
Node used to mark the weight of the node's holder.| Modifier and Type | Interface and Description |
|---|---|
static interface |
WeightNode.Builder
A
WeightNode builder. |
| Modifier and Type | Method and Description |
|---|---|
static @NonNull WeightNode.Builder |
builder()
Creates a
WeightNode builder. |
static @NonNull WeightNode.Builder |
builder(int weight)
Creates a
WeightNode builder. |
default @NonNull NodeType<WeightNode> |
getType()
Gets the type of the node.
|
int |
getWeight()
Gets the weight value.
|
toBuilderbuilder, equals, equals, getContexts, getExpiry, getExpiryDuration, getKey, getMetadata, getValue, hasExpired, hasExpiry, isNegated, metadata, resolveShorthanddefault @NonNull NodeType<WeightNode> getType()
NodegetType in interface NodegetType in interface ScopedNode<WeightNode,WeightNode.Builder>int getWeight()
static @NonNull WeightNode.Builder builder()
WeightNode builder.static @NonNull WeightNode.Builder builder(int weight)
WeightNode builder.weight - the weight to set