Package 

Class ModifierExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      final static Modifier addIf(Modifier $self, Boolean condition, Function1<Modifier, Modifier> factory) Adds the provided modifier elements to this modifier chain if condition is true.
      final static <T extends Any> Modifier addIfNotNull(Modifier $self, T value, Function2<Modifier, T, Modifier> factory) Adds the provided modifier elements to this modifier chain if value is not null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addIf

         final static Modifier addIf(Modifier $self, Boolean condition, Function1<Modifier, Modifier> factory)

        Adds the provided modifier elements to this modifier chain if condition is true.

      • addIfNotNull

         final static <T extends Any> Modifier addIfNotNull(Modifier $self, T value, Function2<Modifier, T, Modifier> factory)

        Adds the provided modifier elements to this modifier chain if value is not null.