Class KeyValueType

    • Constructor Detail

      • KeyValueType

        public KeyValueType​(java.lang.reflect.Type baseJavaType,
                            int expectedArgs)
    • Method Detail

      • getKeyType

        public java.lang.reflect.Type getKeyType()
        never returns null
      • getValueType

        public java.lang.reflect.Type getValueType()
        never returns null
      • filterToList

        public <T> java.util.List<T> filterToList​(java.lang.Object source,
                                                  java.lang.Class<T> filter)
        Description copied from class: EnumerableType
        Returns a new, unmodifiable Enumerable with filtered items, nulls are omitted.
        Overrides:
        filterToList in class EnumerableType
      • items

        protected java.util.stream.Stream<java.lang.Object> items​(java.lang.Object source)
        Specified by:
        items in class EnumerableType
      • entries

        protected abstract java.util.stream.Stream<java.util.Map.Entry> entries​(java.lang.Object source)
      • 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()