de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Flag.isDefined()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(195)

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

Flag.isDefined介绍

暂无

代码示例

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-core-util

/**
 * Shorthand for {@code isDefined() && getValue() == true}
 * 
 * @return true when defined and true.
 */
public boolean isTrue() {
 return isDefined() && getValue().booleanValue();
}

代码示例来源:origin: elki-project/elki

/**
 * Shorthand for {@code isDefined() && getValue() == true}
 * 
 * @return true when defined and true.
 */
public boolean isTrue() {
 return isDefined() && getValue().booleanValue();
}

代码示例来源:origin: elki-project/elki

/**
  * Shorthand for {@code isDefined() && getValue() == false}
  * 
  * @return true when defined and true.
  */
 public boolean isFalse() {
  return isDefined() && !getValue().booleanValue();
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-core-util

/**
  * Shorthand for {@code isDefined() && getValue() == false}
  * 
  * @return true when defined and true.
  */
 public boolean isFalse() {
  return isDefined() && !getValue().booleanValue();
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

/**
 * Shorthand for {@code isDefined() && getValue() == true}
 * 
 * @return true when defined and true.
 */
public boolean isTrue() {
 return isDefined() && getValue().booleanValue();
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

/**
  * Shorthand for {@code isDefined() && getValue() == false}
  * 
  * @return true when defined and true.
  */
 public boolean isFalse() {
  return isDefined() && !getValue().booleanValue();
 }
}

代码示例来源:origin: elki-project/elki

public FlagParameterConfigurator(Flag param, JComponent parent) {
 super(param, parent);
 // Input field
 GridBagConstraints constraints = new GridBagConstraints();
 constraints.gridwidth = 2;
 constraints.fill = GridBagConstraints.HORIZONTAL;
 constraints.weightx = 1.0;
 value = new JCheckBox(param.getOptionID().getName());
 if(param.isDefined() && !param.tookDefaultValue()) {
  value.setSelected(param.isTrue());
 }
 value.setToolTipText(param.getShortDescription());
 parent.add(value, constraints);
 finishGridRow();
 
 value.addActionListener(this);
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

public FlagParameterConfigurator(Flag param, JComponent parent) {
 super(param, parent);
 // Input field
 GridBagConstraints constraints = new GridBagConstraints();
 constraints.gridwidth = 2;
 constraints.fill = GridBagConstraints.HORIZONTAL;
 constraints.weightx = 1.0;
 value = new JCheckBox(param.getName());
 if(param.isDefined() && !param.tookDefaultValue()) {
  value.setSelected(param.isTrue());
 }
 value.setToolTipText(param.getShortDescription());
 parent.add(value, constraints);
 finishGridRow();
 
 value.addActionListener(this);
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

/**
 * Convenience - add a Flag option directly.
 * 
 * @param flag Flag to add, if set
 */
public void forwardOption(Flag flag) {
 if(flag.isDefined() && flag.getValue().booleanValue()) {
  addFlag(flag.getOptionID());
 }
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-gui-minigui

public FlagParameterConfigurator(Flag param, JComponent parent) {
 super(param, parent);
 // Input field
 GridBagConstraints constraints = new GridBagConstraints();
 constraints.gridwidth = 2;
 constraints.fill = GridBagConstraints.HORIZONTAL;
 constraints.weightx = 1.0;
 value = new JCheckBox(param.getOptionID().getName());
 if(param.isDefined() && !param.tookDefaultValue()) {
  value.setSelected(param.isTrue());
 }
 value.setToolTipText(param.getShortDescription());
 parent.add(value, constraints);
 finishGridRow();
 
 value.addActionListener(this);
}

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki-core-api

if((helpF.isDefined() && helpF.getValue()) || (helpLongF.isDefined() && helpLongF.getValue())) {
 LoggingConfiguration.setVerbose(Level.VERBOSE);
 LOG.verbose(usage(config.getAllParameters()));

代码示例来源:origin: elki-project/elki

if((helpF.isDefined() && helpF.getValue()) || (helpLongF.isDefined() && helpLongF.getValue())) {
 LoggingConfiguration.setVerbose(Level.VERBOSE);
 LOG.verbose(usage(config.getAllParameters()));

代码示例来源:origin: de.lmu.ifi.dbs.elki/elki

if((helpF.isDefined() && helpF.getValue()) || (helpLongF.isDefined() && helpLongF.getValue())) {
 LoggingConfiguration.setVerbose(Level.VERBOSE);
 LOG.verbose(usage(config.getAllParameters()));

相关文章