Class FunctionsKt

  • All Implemented Interfaces:

    
    public final class FunctionsKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Function1<String, String> getSnakeToCamelTransformer()
      final static <T extends Any> Function1<T, T> identityTransform() Transform function that takes an input of type T and returns the the input itself.
      final static Function1<String, String> createCaseFormatTransformFunction(CaseFormat fromFormat, CaseFormat toFormat) Transform function that will transform a String from one CaseFormat to another.
      final static Map<String, Object> toMap(Object $self, Map<String, Object> defaultOverrides) Converts an object to a map of property names and values, overriding any values with the same key with the fallback map.
      final static String prettyPrintMe(Object $self, Map<String, Object> fallbackMap) Pretty prints an object to a string.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • identityTransform

         final static <T extends Any> Function1<T, T> identityTransform()

        Transform function that takes an input of type T and returns the the input itself.

      • createCaseFormatTransformFunction

         final static Function1<String, String> createCaseFormatTransformFunction(CaseFormat fromFormat, CaseFormat toFormat)

        Transform function that will transform a String from one CaseFormat to another.

        Parameters:
        fromFormat - The CaseFormat to transform from.
        toFormat - The CaseFormat to transform to.
      • toMap

         final static Map<String, Object> toMap(Object $self, Map<String, Object> defaultOverrides)

        Converts an object to a map of property names and values, overriding any values with the same key with the fallback map.