Class LazilyFormattedString

java.lang.Object
net.shibboleth.utilities.java.support.primitive.LazilyFormattedString

@Deprecated(since="8.3.0", forRemoval=true) public class LazilyFormattedString extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
An object that represents a string containing a Formatter string and a set of values. When toString() is called the format string is filled in with the given values. This allows for lazy evaluation of the value objects formatting function which may be expensive.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Object[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    The values that are filled in to the template string.
    private final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    The template that is filled in with the values.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LazilyFormattedString(String stringTemplate, Object... templateArguments)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • template

      private final String template
      Deprecated, for removal: This API element is subject to removal in a future version.
      The template that is filled in with the values.
    • arguments

      private final Object[] arguments
      Deprecated, for removal: This API element is subject to removal in a future version.
      The values that are filled in to the template string.
  • Constructor Details

    • LazilyFormattedString

      public LazilyFormattedString(@Nonnull String stringTemplate, @Nullable Object... templateArguments)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor.
      Parameters:
      stringTemplate - the Formatter template string
      templateArguments - the arguments to the template
  • Method Details

    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object