Class ListObject


  • public final class ListObject
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ListObject()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isListObject​(jakarta.json.JsonValue value)
      A list object is a map that has a @list key.
      static jakarta.json.JsonObject toListObject​(jakarta.json.JsonValue value)
      Convert expanded value to a list object by first setting it to an array containing only expanded value if it is not already an array, and then by setting it to a map containing the key-value pair @list-expanded value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ListObject

        private ListObject()
    • Method Detail

      • isListObject

        public static boolean isListObject​(jakarta.json.JsonValue value)
        A list object is a map that has a @list key. It may also have an @index key, but no other entries. See the Lists and Sets section of JSON-LD 1.1 for a normative description.
        Parameters:
        value - to check
        Returns:
        true if the provided value is valid list object
        See Also:
        List Object
      • toListObject

        public static jakarta.json.JsonObject toListObject​(jakarta.json.JsonValue value)
        Convert expanded value to a list object by first setting it to an array containing only expanded value if it is not already an array, and then by setting it to a map containing the key-value pair @list-expanded value.
        Parameters:
        value - to convert
        Returns:
        list object containing the provided value