Package 

Class ExtensionKt

  • All Implemented Interfaces:

    
    public final class ExtensionKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends JSONValue> JSONRef<T> ptr(JSONValue $self, JSONPointer pointer) Create a JSONRef from thisJSONValue and the specified JSONPointer.
      final static <T extends JSONValue> Unit ifPresent(JSONRef<JSONObject> $self, String name, Function2<JSONRef<T>, T, Unit> block) Conditionally execute if JSONObject referenced by thisJSONRef contains a member with the specified key and the expected type.
      final static <T extends JSONValue> Unit forEachKey(JSONRef<JSONObject> $self, Function2<JSONRef<T>, String, Unit> block) Iterate over the members of the JSONObject referenced by thisJSONRef.
      final static <T extends JSONValue> Unit forEach(JSONRef<JSONArray> $self, Function2<JSONRef<T>, Integer, Unit> block) Iterate over the members of the JSONArray referenced by thisJSONRef.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait