Class Format
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.formatting.Format
- All Implemented Interfaces:
java.util.function.Function<java.lang.Object,java.lang.String>
public class Format
extends java.lang.Object
implements java.util.function.Function<java.lang.Object,java.lang.String>
Apply the Java String.format method to an incoming object.
- See Also:
- Java 8 String.format(...) javadoc Note: This function can often be quite slow, so more direct methods are generally preferrable.
-
Constructor Summary
Constructors Constructor Description Format(java.lang.String format) -
Method Summary
Modifier and Type Method Description java.lang.Stringapply(java.lang.Object o)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.Function
andThen, compose
-
Constructor Details
-
Format
public Format(java.lang.String format)
-
-
Method Details
-
apply
public java.lang.String apply(java.lang.Object o)- Specified by:
applyin interfacejava.util.function.Function<java.lang.Object,java.lang.String>
-