de.tsl2.nano.core.util.Util类的使用及代码示例

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

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

Util介绍

暂无

代码示例

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.directaccess

/**
 * @return Returns the defaultSchema.
 */
public String getDefaultSchema() {
  if (Util.isEmpty(defaultSchema) && !Util.isEmpty(connectionUserName)) {
    defaultSchema = connectionUserName.toUpperCase();
  }
  return defaultSchema;
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.repeatable

/**
   * {@inheritDoc}
   */
  @Override
  public String toString() {
    return Util.asString(item) + ": " + Util.asString(old) + " --> " + Util.asString(neW);
  }
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.serviceaccess

/**
 * constructor
 * @param resultType
 * @param attribute
 * @param selection
 * @param relationsToLoad
 */
public InSelection(Class<T> resultType, String attribute, Collection<?> selection, Class<Object>... relationsToLoad) {
  super(resultType, relationsToLoad);
  par = Arrays.asList(Util.untyped(selection));
  this.attribute = attribute;
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.terminal

@Override
public IItem react(IItem caller, String input, InputStream in, PrintStream out, Properties env) {
  if (Util.isEmpty(input) && !isSequential()) {
    return getParent();
    nextnext = next.react(this, Util.asString(next.getValue()), in, out, env);
  } else if (next instanceof IContainer && ((Container) next).getNodes(env).size() == 1) {

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.cursus

@Override
  public String toString() {
    return Util.toString(getClass(), startedAt, startPeriod, EndPeriod, status, items);
  }
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.terminal

protected String printImageDescription() {
  return printImageDescription(Util.get(SIShell.KEY_HEIGHT, 20) - 6);
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.cursus

@Override
public int hashCode() {
  return Util.hashCode(grex);
}
@Override

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.cursus

private void preparePeriod() {
  if (current == null) {
    from = Util.value(from, new Date(Long.MIN_VALUE));
    until = Util.value(until, new Date(Long.MAX_VALUE));
    current = Calendar.getInstance();
    reset();
  }
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.cursus

@Override
public boolean equals(Object o) {
  if (!(o instanceof Entry))
    return false;
  Entry m = (Entry) o;
  return Util.equals(this.grex, m.grex);
}
@Override

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.cursus

@Override
  public String toString() {
    return Util.toString(getClass(), exsecutios, timer, status, changed);
  }
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.terminal

/**
 * printImageDescription
 */
protected String printImageDescription(int height) {
  StringWriter stream = new StringWriter();
  try {
    new AsciiImage().convertToAscii(description, new PrintWriter(stream), Util.get(SIShell.KEY_WIDTH, 80) - 2,
      height);
    //remove windows returns
    return stream.toString().replaceAll("\r", "");
  } catch (Exception e) {
    ManagedException.forward(e);
    return null;
  }
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.cursus

@Override
public int hashCode() {
  return Util.hashCode(genRes);
}
@Override

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.cursus

public Timer(Date from, Date until, int stepType, int stepLength, Integer...stepExceptions) {
  this.from = Util.value(from, new Date(Long.MIN_VALUE));
  this.until = Util.value(until, new Date(Long.MAX_VALUE));
  this.stepType = stepType;
  this.stepLength = stepLength;
  this.stepExceptions = new ArrayList<>(Arrays.asList(stepExceptions));
  preparePeriod();
}
private void preparePeriod() {

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.directaccess

@Override
public boolean equals(Object obj) {
  return obj instanceof Persistence && Util.equals(jarFile, connectionUrl, connectionUserName, connectionPassword);
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.terminal

private void clearScreeen() {
  try {
    if (!Util.isEmpty(clearScreenCmd))
      SystemUtil.execute(clearScreenCmd);
  } catch (Exception e) {
    LOG.warn("clear screen command '" + clearScreenCmd + "' failed: " + e.toString()
      + ". resetting the clear screen command.");
    clearScreenCmd = null;
  }
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.cursus

public String getObjectid() {
  return Util.asString(objectid);
}
public void setObjectid(String objectid) {

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.descriptor

@Override
  public String toString() {
    return Util.toString(this.getClass(), name);
  }
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.directaccess

@Override
public Set<Parameter<?>> getParameters() {
  return new HashSet<Parameter<?>>((Collection<? extends Parameter<?>>) Util.untyped(parameter.values()));
}

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.incubation

String xTitle = properties.getProperty("xTitle", "X");
String yTitle = properties.getProperty("yTitle", "Y");
int width = Util.get(properties, "width", 640);
int height = Util.get(properties, "height", 480);
boolean yLogarithmic = Boolean.valueOf(properties.getProperty("yLogarithmic", "false"));
Iterator<Object> it = data.keySet().iterator();

代码示例来源:origin: net.sf.tsl2nano/tsl2.nano.cursus

@Override
public int hashCode() {
  return Util.hashCode(res, previous, next);
}
@Override

相关文章