Class CypherMapWrapper

  • All Implemented Interfaces:
    CypherMapAccess

    public final class CypherMapWrapper
    extends java.lang.Object
    implements CypherMapAccess
    Wrapper around configuration options map
    • Method Detail

      • create

        public static CypherMapWrapper create​(@Nullable
                                              @Nullable java.util.Map<java.lang.String,​java.lang.Object> config)
      • containsKey

        public boolean containsKey​(java.lang.String key)
        Description copied from interface: CypherMapAccess
        Checks if the given key exists in the configuration.
        Specified by:
        containsKey in interface CypherMapAccess
        Parameters:
        key - key to look for
        Returns:
        true, iff the key exists
      • keySet

        public java.util.Collection<java.lang.String> keySet()
        Specified by:
        keySet in interface CypherMapAccess
      • typedValue

        @NotNull
        public <V> V typedValue​(java.lang.String key,
                                java.lang.Class<V> expectedType)
        Specified by:
        typedValue in interface CypherMapAccess
      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: CypherMapAccess
        Returns a copy of the internal Map.
        Specified by:
        toMap in interface CypherMapAccess
      • withString

        public CypherMapWrapper withString​(java.lang.String key,
                                           java.lang.String value)
      • withNumber

        public CypherMapWrapper withNumber​(java.lang.String key,
                                           java.lang.Number value)
      • withBoolean

        public CypherMapWrapper withBoolean​(java.lang.String key,
                                            java.lang.Boolean value)
      • withEntryIfMissing

        public CypherMapWrapper withEntryIfMissing​(java.lang.String key,
                                                   java.lang.Object value)
      • withEntry

        public CypherMapWrapper withEntry​(java.lang.String key,
                                          java.lang.Object value)
      • withoutAny

        public CypherMapWrapper withoutAny​(java.util.Collection<java.lang.String> keys)