Interface ValueNodeContainer
- All Known Implementing Classes:
ArrayValue,Field
public interface ValueNodeContainer
A general interface for nodes that allow values to be added to itself.
-
Method Summary
Modifier and TypeMethodDescriptionAdds a typednullvalue to this container.Adds a value with the specifiedFieldTypeto this container.Adds a value to this container, inferring theFieldTypefrom the value's class.booleanhasValue()Returnstrueif this container has had any value added, includingnull.
-
Method Details
-
addValue
Adds a value with the specifiedFieldTypeto this container.- Parameters:
type- the field type of the value to add, ornullto infer the typevalue- the value to add, may benull- Returns:
- this container for method chaining
-
addValue
Adds a value to this container, inferring theFieldTypefrom the value's class.- Parameters:
value- the value to add, may benull- Returns:
- this container for method chaining
-
addNull
Adds a typednullvalue to this container.- Parameters:
type- the field type of the null value to add- Returns:
- this container for method chaining
-
hasValue
boolean hasValue()Returnstrueif this container has had any value added, includingnull. Otherwise, it returnsfalse.
-