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

io.github.qsy7.logging.formatter.MapFormatter 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.Iterator;
import java.util.Map;

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy