public static boolean notNull(SInstance current, STypeComposite type) { if (current != null && type != null) { SIComposite targetInstance = (SIComposite) getInstance(current, type); return Value.notNull(targetInstance); } return false; }
public static SInstance pojoToSInstance(Object objectToConvert, SInstance instance, boolean strictMode) { Map<Integer, Map<String, Object>> pojoToMap = pojoToMap(objectToConvert); return mapToSInstace(pojoToMap, objectToConvert, instance, strictMode); } }
/** * @param current instancia a partir da qual será buscada a instancia mais * proxima do tipo simples tipo * @param tipo um tipo simples * @return false se o valor do tipo simples for nulo ou se o tipo não for * encontrado a partir da instancia current informada */ public static <T extends Serializable> boolean notNull(SInstance current, STypeSimple<? extends SISimple<T>, T> tipo) { return Value.of(current, tipo) != null; }
/** * Retorna o valor de uma instancia de um tipo simples que pode ser * alcançada a partir do {@param instancia} fornecido */ public static <T extends Serializable> T of(SInstance instancia, STypeSimple<? extends SISimple<T>, T> tipo) { if (instancia != null && tipo != null) { SISimple targetInstance = (SISimple) getInstance(instancia, tipo); if (targetInstance != null) { return (T) Value.of(targetInstance); } } return null; }
@Override public Content toObject(SIComposite ins) { return Value.dehydrate(ins); } });
@Override public void fillInstance(SIComposite ins, Content obj) { hydrate(ins, obj); }
/** * Dynamically add a new Selection Element * @return * Value setter utilitiy class to configure element fields */ public SCompositeListBuilder.SCompositeValueSetter add() { return sCompositeListBuilder.add(); }
public static Predicate<SInstance> typeValueIsNull(STypeComposite<SIComposite> type) { return si -> !Value.notNull(si, type); }
public List<SIComposite> getList() { return _lb.getList(); } }
/** * Returns the target SInstance of selection * @return */ public SInstance getCurrentInstance() { return sCompositeListBuilder.getCurrentInstance(); }
@Override public <K extends SType<?>> FromPojoList<T> map(K type, FromPojoFiedlBuilder<T> mapper) { super.map(type, mapper); return this; }
public static boolean notNull(SInstance current, STypeList tipo) { if (current != null && tipo != null) { SIList instanciaLista = (SIList) getInstance(current, tipo); return Value.notNull(instanciaLista); } return false; }
/** * Retorna o valor de uma instancia de um tipo simples que pode ser * alcançada a partir do {@param instancia} fornecido */ public static <T extends Serializable> T of(SInstance instance, STypeSimple<? extends SISimple<T>, T> type) { if (instance != null && type != null) { SISimple targetInstance = (SISimple) getInstance(instance, type); if (targetInstance != null) { return (T) Value.of(targetInstance); } } return null; }
/** * @param current instancia a partir da qual será buscada a instancia mais * proxima do tipo simples tipo * @param type um tipo simples * @return false se o valor do tipo simples for nulo ou se o tipo não for * encontrado a partir da instancia current informada */ public static <T extends Serializable> boolean notNull(SInstance current, STypeSimple<? extends SISimple<T>, T> type) { return Value.of(current, type) != null; }
@Override public Content toObject(SIComposite ins) { return Value.dehydrate(ins); } });
@Override public void fillInstance(SIComposite ins, Content obj) { hydrate(ins, obj); }
public List<SIComposite> getList() { return _lb.getList(); } }
@Override public <K extends SType<?>> FromPojoList<T> map(K type, Object value) { super.map(type, value); return this; }
public static boolean notNull(SInstance current, STypeList type) { if (current != null && type != null) { SIList listInstance = (SIList) getInstance(current, type); return Value.notNull(listInstance); } return false; }
public static boolean notNull(SInstance current, STypeComposite tipo) { if (current != null && tipo != null) { SIComposite targetInstance = (SIComposite) getInstance(current, tipo); return Value.notNull(targetInstance); } return false; }