Class ArrayType

    • Constructor Detail

      • ArrayType

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

      • getConcreteClassTypeArguments

        public java.util.List<java.lang.reflect.Type> getConcreteClassTypeArguments()
        Description copied from class: JaversType
        For generic types, returns a list of actual Class arguments. For example, for Set<String>, returns String. Non-concrete (like ?) or missing type arguments like are defaulted to Object.

        For array, returns List with Class.getComponentType()
        Overrides:
        getConcreteClassTypeArguments in class JaversType
      • isEmpty

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

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

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

        public boolean equals​(java.lang.Object left,
                              java.lang.Object right)
        Description copied from class: JaversType
        Used for comparing as Values
        Overrides:
        equals in class JaversType
      • 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()