Class MapType

    • Constructor Detail

      • MapType

        public MapType​(java.lang.reflect.Type baseJavaType)
    • Method Detail

      • mapStatic

        public static java.util.Map mapStatic​(java.lang.Object sourceEnumerable,
                                              EnumerableFunction mapFunction,
                                              OwnerContext owner)
        Returns:
        immutable Map
      • map

        public java.lang.Object map​(java.lang.Object source,
                                    java.util.function.Function mapFunction,
                                    boolean filterNulls)
        Specified by:
        map in class EnumerableType
      • isEmpty

        public boolean isEmpty​(java.lang.Object map)
        Specified by:
        isEmpty in class EnumerableType
      • mapEntrySet

        public static void mapEntrySet​(java.util.Collection<java.util.Map.Entry<?,​?>> sourceEntries,
                                       EnumerableFunction mapFunction,
                                       MapEnumerationOwnerContext mapEnumerationContext,
                                       java.util.function.BiConsumer entryConsumer)
      • mapEntrySet

        public static void mapEntrySet​(java.util.Collection<java.util.Map.Entry<?,​?>> sourceEntries,
                                       java.util.function.Function mapFunction,
                                       java.util.function.BiConsumer entryConsumer,
                                       boolean filterNulls)
      • entries

        protected java.util.stream.Stream<java.util.Map.Entry> entries​(java.lang.Object source)
        Specified by:
        entries in class KeyValueType
      • isInstance

        public boolean isInstance​(java.lang.Object cdo)
        Specified by:
        isInstance in class JaversType
      • getRawDehydratedType

        protected java.lang.reflect.Type getRawDehydratedType()
        Type for JSON representation. For Values it's simply baseJavaType. For ManagedTypes (references to Entities and ValueObjects) it's GlobalId because JaVers serializes references in the 'dehydrated' form.
      • getBaseJavaClass

        public java.lang.Class getBaseJavaClass()