org.opensingular.form.util.transformer.Value.notNull()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(66)

本文整理了Java中org.opensingular.form.util.transformer.Value.notNull()方法的一些代码示例,展示了Value.notNull()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.notNull()方法的具体详情如下:
包路径:org.opensingular.form.util.transformer.Value
类名称:Value
方法名:notNull

Value.notNull介绍

暂无

代码示例

代码示例来源:origin: org.opensingular/singular-form-core

public static Predicate<SInstance> typeValueIsNull(STypeComposite<SIComposite> type) {
  return si -> !Value.notNull(si, type);
}

代码示例来源:origin: org.opensingular/singular-form-core

public static <T extends Serializable> Predicate<SInstance> typeValueIsNull(STypeSimple<? extends SISimple<T>, T> type) {
  return si -> !Value.notNull(si, type);
}

代码示例来源:origin: org.opensingular/form-core

public static Predicate<SInstance> typeValueIsNull(STypeComposite<SIComposite> type) {
  return si -> !Value.notNull(si, type);
}

代码示例来源:origin: org.opensingular/singular-form-core

public static Predicate<SInstance> typeValueIsNotNull(STypeComposite<SIComposite> type) {
  return si -> Value.notNull(si, type);
}

代码示例来源:origin: org.opensingular/form-core

public <T extends Serializable> boolean notNull(STypeSimple<? extends SISimple<T>, T> tipo) {
  return Value.notNull(instance, tipo);
}

代码示例来源:origin: org.opensingular/form-core

public static Predicate<SInstance> typeValueIsNotNull(STypeComposite<SIComposite> type) {
  return si -> Value.notNull(si, type);
}

代码示例来源:origin: org.opensingular/form-core

public static <T extends Serializable> Predicate<SInstance> typeValueIsNotNull(STypeSimple<? extends SISimple<T>, T> type) {
  return si -> Value.notNull(si, type);
}

代码示例来源:origin: org.opensingular/singular-form-core

public <T extends Serializable> boolean notNull(STypeSimple<? extends SISimple<T>, T> type) {
  return Value.notNull(instance, type);
}

代码示例来源:origin: org.opensingular/singular-form-core

public static <T extends Serializable> Predicate<SInstance> typeValueIsNotNull(STypeSimple<? extends SISimple<T>, T> type) {
  return si -> Value.notNull(si, type);
}

代码示例来源:origin: org.opensingular/form-core

public static <T extends Serializable> Predicate<SInstance> typeValueIsNull(STypeSimple<? extends SISimple<T>, T> type) {
  return si -> !Value.notNull(si, type);
}

代码示例来源:origin: org.opensingular/singular-form-core

public static boolean notNull(SInstance instance) {
  if (instance instanceof SIComposite) {
    return Value.notNull((SIComposite) instance);
  } else if (instance instanceof SISimple) {
    return Value.notNull((SISimple) instance);
  } else if (instance instanceof SIList) {
    return Value.notNull((SIList) instance);
  } else {
    throw new SingularFormException("Tipo de instancia não suportado", instance);
  }
}

代码示例来源:origin: org.opensingular/form-core

public static boolean notNull(SInstance instancia) {
  if (instancia instanceof SIComposite) {
    return Value.notNull((SIComposite) instancia);
  } else if (instancia instanceof SISimple) {
    return Value.notNull((SISimple) instancia);
  } else if (instancia instanceof SIList) {
    return Value.notNull((SIList) instancia);
  } else {
    throw new SingularFormException("Tipo de instancia não suportado", instancia);
  }
}

代码示例来源:origin: org.opensingular/singular-form-core

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;
}

代码示例来源:origin: org.opensingular/form-core

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;
}

代码示例来源:origin: org.opensingular/singular-form-core

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;
}

代码示例来源:origin: org.opensingular/form-core

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;
}

代码示例来源:origin: org.opensingular/exemplos-form

.label("Insumo Ativo")
.dependsOn(linhaProducao)
.visible(i -> Value.notNull(i, linhaProducao.id));
        .flatMap(Collection::stream)
        .map(ins -> ins.findNearest(descricaoDinamizada))
        .filter(ins -> ins.isPresent() && Value.notNull(ins.get(), idDescricaoDinamizada))
        .findFirst().isPresent();
    return !list.isEmpty() && hasIdDescricaoDinamizadaPresent;

代码示例来源:origin: org.opensingular/exemplos-form

.visible(i -> Value.notNull(i, idNomenclaturaBotanica))
.label("Concentração")
.dependsOn(nomenclaturaBotanica);

代码示例来源:origin: org.opensingular/exemplos-form

.label("Substância")
.dependsOn(dependentType)
.exists(i -> Value.notNull(i, idConfiguracaoLinhaProducao));

代码示例来源:origin: org.opensingular/exemplos-form

.label("Descrição").required().dependsOn(linhaProducao).exists(i -> Value.notNull(i, linhaProducao.id))
.asAtrBootstrap()
.colPreference(8);

相关文章