org.boon.Boon.println()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(8.6k)|赞(0)|评价(0)|浏览(141)

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

Boon.println介绍

[英]Adds a newline to the console.
[中]向控制台添加新行。

代码示例

代码示例来源:origin: boonproject/boon

/**
 * Prints an object to the console.
 *
 * @param message object to print.
 */
public static void println(Object message) {
  print(message);
  println();
}

代码示例来源:origin: boonproject/boon

/**
 * Prints an object to the console.
 *
 * @param message object to print.
 */
public static void println(Object message) {
  print(message);
  println();
}

代码示例来源:origin: io.fastjson/boon

/**
 * Prints an object to the console.
 *
 * @param message object to print.
 */
public static void println(Object message) {
  print(message);
  println();
}

代码示例来源:origin: boonproject/boon

/**
 * Like print, but prints out a whole slew of objects on the same line.
 *
 * @param messages objects you want to print on the same line.
 */
public static void puts(Object... messages) {
  for (Object message : messages) {
    print(message);
    if (!(message instanceof Terminal.Escape)) print(' ');
  }
  println();
}

代码示例来源:origin: boonproject/boon

/**
 * Like print, but prints out a whole slew of objects on the same line.
 *
 * @param messages objects you want to print on the same line.
 */
public static void puts(Object... messages) {
  for (Object message : messages) {
    print(message);
    if (!(message instanceof Terminal.Escape)) print(' ');
  }
  println();
}

代码示例来源:origin: io.fastjson/boon

/**
 * Like print, but prints out a whole slew of objects on the same line.
 *
 * @param messages objects you want to print on the same line.
 */
public static void puts(Object... messages) {
  for (Object message : messages) {
    print(message);
    if (!(message instanceof Terminal.Escape)) print(' ');
  }
  println();
}

代码示例来源:origin: boonproject/boon

/**
 * <p>
 * Like puts but prints out each object on its own line.
 * If the object is a list or array,
 * then each item in the list gets printed out on its own line.
 * </p>
 *
 * @param messages the stuff you want to print out.
 */
public static void putl(Object... messages) {
  for (Object message : messages) {
    if (message instanceof Collection || Typ.isArray(message)) {
      Iterator iterator = Conversions.iterator(message);
      while (iterator.hasNext()) {
        puts(iterator.next());
      }
      continue;
    }
    print(message);
    println();
  }
  println();
}

代码示例来源:origin: boonproject/boon

/**
 * <p>
 * Like puts but prints out each object on its own line.
 * If the object is a list or array,
 * then each item in the list gets printed out on its own line.
 * </p>
 *
 * @param messages the stuff you want to print out.
 */
public static void putl(Object... messages) {
  for (Object message : messages) {
    if (message instanceof Collection || Typ.isArray(message)) {
      Iterator iterator = Conversions.iterator(message);
      while (iterator.hasNext()) {
        puts(iterator.next());
      }
      continue;
    }
    print(message);
    println();
  }
  println();
}

代码示例来源:origin: boonproject/boon

private static List<LogFile> getLogFilesToProcess(long minimumAgeMillis, boolean verbose) {
  String logFilesDirectory = getLogFilesDirectory();
  List<LogFile> logFiles = new ArrayList<>();
  List<Path> paths = IO.listPath(IO.path(logFilesDirectory));
  if (paths != null && paths.size() > 0) {
    long maxLastModified = Dates.now() - minimumAgeMillis;
    for (Path path : paths) {
      LogFile logFile = new LogFile(path);
      if (logFile.lastModified < maxLastModified) {
        logFiles.add(logFile);
        if (verbose) {
          println("Adding for processing: " + logFile.path);
        }
      }
      else if (verbose) {
        println("Skipping: " + logFile.path);
      }
    }
    // Sort the list oldest to newest
    Collections.sort(logFiles);
  }
  return logFiles;
}

代码示例来源:origin: io.fastjson/boon

/**
 * <p>
 * Like puts but prints out each object on its own line.
 * If the object is a list or array,
 * then each item in the list gets printed out on its own line.
 * </p>
 *
 * @param messages the stuff you want to print out.
 */
public static void putl(Object... messages) {
  for (Object message : messages) {
    if (message instanceof Collection || Typ.isArray(message)) {
      Iterator iterator = Conversions.iterator(message);
      while (iterator.hasNext()) {
        puts(iterator.next());
      }
      continue;
    }
    print(message);
    println();
  }
  println();
}

代码示例来源:origin: boonproject/boon

println("Log Files Replicator @ " + new Date());
println("DataStoreClientConfig=" + Sys.sysProp("DataStoreClientConfig"));
println("DataStoreConfig=" + Sys.sysProp("DataStoreConfig"));
println("LogFilesReplicatorConfig=" + Sys.sysProp("LogFilesReplicatorConfig"));
print("LogFilesReplicatorConfig ");
println(toPrettyJson(config));
println();
if (++id < 1) { id = 1; }
if (config.verbose) {
  println();
  println("Processing Round: " + id);
  println("Round Completed: " + id);

代码示例来源:origin: boonproject/boon

/**
 * Like puts, but prints out a whole slew of objects on the same
 * line using the template if the message is a character sequence.
 * Uses JSTL style templates.
 *
 * @param messages objects you want to print on the same line.
 */
public static void putc(Object context, Object... messages) {
  for (Object message : messages) {
    if (message instanceof CharSequence) {
      String transformedMessage =
          jstl(message.toString(), context);
      print(message);
    } else {
      print(message);
    }
    print(' ');
  }
  println();
}

代码示例来源:origin: io.fastjson/boon

/**
 * Like puts, but prints out a whole slew of objects on the same
 * line using the template if the message is a character sequence.
 * Uses JSTL style templates.
 *
 * @param messages objects you want to print on the same line.
 */
public static void putc(Object context, Object... messages) {
  for (Object message : messages) {
    if (message instanceof CharSequence) {
      String transformedMessage =
          jstl(message.toString(), context);
      print(message);
    } else {
      print(message);
    }
    print(' ');
  }
  println();
}

代码示例来源:origin: boonproject/boon

/**
 * Like puts, but prints out a whole slew of objects on the same
 * line using the template if the message is a character sequence.
 * Uses Handlebar style templates.
 *
 * @param messages objects you want to print on the same line.
 */
public static void puth(Object context, Object... messages) {
  for (Object message : messages) {
    if (message instanceof CharSequence) {
      String transformedMessage =
          handlebars(message.toString(), context);
      print(message);
    } else {
      print(message);
    }
    print(' ');
  }
  println();
}

代码示例来源:origin: boonproject/boon

/**
 * Like puts, but prints out a whole slew of objects on the same
 * line using the template if the message is a character sequence.
 * Uses JSTL style templates.
 *
 * @param messages objects you want to print on the same line.
 */
public static void putc(Object context, Object... messages) {
  for (Object message : messages) {
    if (message instanceof CharSequence) {
      String transformedMessage =
          jstl(message.toString(), context);
      print(message);
    } else {
      print(message);
    }
    print(' ');
  }
  println();
}

代码示例来源:origin: boonproject/boon

/**
 * Like puts, but prints out a whole slew of objects on the same
 * line using the template if the message is a character sequence.
 * Uses Handlebar style templates.
 *
 * @param messages objects you want to print on the same line.
 */
public static void puth(Object context, Object... messages) {
  for (Object message : messages) {
    if (message instanceof CharSequence) {
      String transformedMessage =
          handlebars(message.toString(), context);
      print(message);
    } else {
      print(message);
    }
    print(' ');
  }
  println();
}

代码示例来源:origin: io.fastjson/boon

/**
 * Like puts, but prints out a whole slew of objects on the same
 * line using the template if the message is a character sequence.
 * Uses Handlebar style templates.
 *
 * @param messages objects you want to print on the same line.
 */
public static void puth(Object context, Object... messages) {
  for (Object message : messages) {
    if (message instanceof CharSequence) {
      String transformedMessage =
          handlebars(message.toString(), context);
      print(message);
    } else {
      print(message);
    }
    print(' ');
  }
  println();
}

代码示例来源:origin: boonproject/boon

public static DataStoreClient getVertxWebSocketClient(String contextName, DataStoreClientConfig dssc, boolean verbose) {
  /* Create a new instance of Vertx. */
  Vertx vertx = VertxFactory.newVertx();
  /* CONFIG: Initialize the client provider. */
  DataStoreVertxWebSocketClientProvider provider = new DataStoreVertxWebSocketClientProvider();
  provider.registerSupplier(); //register the provider.
  println(dssc);
  provider.init(vertx, new DataOutputQueueTransferQueue(10), dssc, verbose, false);
  DataStoreClient client = DataStoreFactory.createClient(contextName, null);
  Sys.sleep(1000);
  return client;
}

代码示例来源:origin: boonproject/boon

public static void main( String[] args ) throws Exception {
  final List<Employee> employees = BenchmarkHelper.createMetricTonOfEmployees( numCreations );
  System.out.println( "employees created " + employees.size() );
  Map<String, List<MeasuredRun>> testResults = new ConcurrentHashMap<>();
  MeasuredRun run1 = firstNameSearchIndexTest_DR( employees, testResults );
  MeasuredRun run2 = firstNameSearchTest( employees, testResults );
  MeasuredRun run3 = firstNameSearchNoIndexTest_DR( employees, testResults );
  MeasuredRun run4 = firstNameSearchNoIndexTestUnsafe_DR( employees, testResults );
  MeasuredRun run5 = linearSearchWithCache_DR( employees, testResults );
  List<MeasuredRun> runs = Lists.list( run1, run2, run3, run4, run5 );
  for ( int index = 0; index < 2; index++ ) {
    for ( MeasuredRun run : runs ) {
      System.gc();
      Thread.sleep( 10 );
      run.run();
    }
  }
  for ( int index = 0; index < 5; index++ ) {
    for ( MeasuredRun run : runs ) {
      System.gc();
      Thread.sleep( 10 );
      run.run();
      //puts( "Name", run.name(), "Time", run.time() );
    }
  }
  println( "done" );
}

相关文章