Class MoreObjects.ToStringHelper.UnconditionalValueHolder

  • Enclosing class:
    MoreObjects.ToStringHelper

    private static final class MoreObjects.ToStringHelper.UnconditionalValueHolder
    extends MoreObjects.ToStringHelper.ValueHolder
    Holder object for values that cannot be null or empty (will be printed unconditionally). This helps to shortcut most calls to isEmpty(), which is important because the check for emptiness is relatively expensive. Use a subtype so this also doesn't need any extra storage.
    • Constructor Detail

      • UnconditionalValueHolder

        private UnconditionalValueHolder()