All Downloads are FREE. Search and download functionalities are using the official Maven repository.

delombok.io.github.qsy7.logging.formatter.CollectionFormatter Maven / Gradle / Ivy

The newest version!
// Generated by delombok at Fri Apr 08 14:43:06 EDT 2022
package io.github.qsy7.logging.formatter;

import io.github.qsy7.logging.util.ArgumentUtil;
import java.util.Collection;
import java.util.Iterator;

public class CollectionFormatter {
  public static Object format(final boolean isSensitive, Collection argument, final int argumentLength) {
    final String[] out = new String[argumentLength];
    final Iterator iterator = argument.iterator();
    for (int i = 0; i < argumentLength; i++) {
      out[i] = ArgumentUtil.format(iterator.next(), isSensitive);
    }
    return out;
  }

  @java.lang.SuppressWarnings("all")
  private CollectionFormatter() {
  }
}