/** * Descriptor for a reactive type that can produce 0..N values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor multiValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, true, false); }
/** * Descriptor for a reactive type that does not produce any values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor noValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, false, true); }
/** * Descriptor for a reactive type that can produce 0..1 values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor singleOptionalValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, false, false); }
/** * Descriptor for a reactive type that must produce 1 value to complete. * @param type the reactive type */ public static ReactiveTypeDescriptor singleRequiredValue(Class<?> type) { return new ReactiveTypeDescriptor(type, null, false, false); }
/** * Descriptor for a reactive type that can produce 0..N values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor multiValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, true, false); }
/** * Descriptor for a reactive type that does not produce any values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor noValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, false, true); }
/** * Descriptor for a reactive type that must produce 1 value to complete. * @param type the reactive type */ public static ReactiveTypeDescriptor singleRequiredValue(Class<?> type) { return new ReactiveTypeDescriptor(type, null, false, false); }
/** * Descriptor for a reactive type that can produce 0..1 values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor singleOptionalValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, false, false); }
/** * Descriptor for a reactive type that must produce 1 value to complete. * @param type the reactive type */ public static ReactiveTypeDescriptor singleRequiredValue(Class<?> type) { return new ReactiveTypeDescriptor(type, null, false, false); }
/** * Descriptor for a reactive type that can produce 0..N values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor multiValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, true, false); }
/** * Descriptor for a reactive type that can produce 0..1 values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor singleOptionalValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, false, false); }
/** * Descriptor for a reactive type that does not produce any values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor noValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, false, true); }
/** * Descriptor for a reactive type that can produce 0..1 values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor singleOptionalValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, false, false); }
/** * Descriptor for a reactive type that can produce 0..N values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor multiValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, true, false); }
/** * Descriptor for a reactive type that must produce 1 value to complete. * @param type the reactive type */ public static ReactiveTypeDescriptor singleRequiredValue(Class<?> type) { return new ReactiveTypeDescriptor(type, null, false, false); }
/** * Descriptor for a reactive type that does not produce any values. * @param type the reactive type * @param emptySupplier a supplier of an empty-value instance of the reactive type */ public static ReactiveTypeDescriptor noValue(Class<?> type, Supplier<?> emptySupplier) { return new ReactiveTypeDescriptor(type, emptySupplier, false, true); }