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 sourceEnumerable,
                                    java.util.function.Function mapFunction)
        Nulls keys are filtered
        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)
      • mapEntrySetFilterNulls

        public static void mapEntrySetFilterNulls​(java.util.Collection<java.util.Map.Entry<?,​?>> sourceEntries,
                                                  java.util.function.Function mapFunction,
                                                  java.util.function.BiConsumer entryConsumer)
      • 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()