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 boolean notNull(SInstance current, STypeComposite tipo) { if (current != null && tipo != null) { SIComposite targetInstance = (SIComposite) getInstance(current, tipo); return Value.notNull(targetInstance); } return false; }
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, 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; }
/** * 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; }