Interface ValueNode<T>

Type Parameters:
T - a type of value
All Superinterfaces:
Node<T>
All Known Subinterfaces:
NumberValue
All Known Implementing Classes:
BooleanValue, ByteValue, CharValue, DoubleValue, EnumValue, FloatValue, IntValue, LongValue, ShortValue, StringValue

public sealed interface ValueNode<T> extends Node<T> permits BooleanValue, CharValue, EnumValue<E>, NumberValue, StringValue
An interface to represents that Node holds a value or value based object.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets an object which this Node holds

    Methods inherited from interface com.github.siroshun09.configapi.core.node.Node

    accept, asOptional, hasValue
  • Method Details

    • value

      @NotNull T value()
      Description copied from interface: Node
      Gets an object which this Node holds
      Specified by:
      value in interface Node<T>
      Returns:
      an object which this Node holds