Fork me on GitHub

TypeUtils

In package com.mitchellbosecke.pebble.utils

public class TypeUtils extends Object

A small utility class to handle type operation.

Constructors

public TypeUtils()
Parameters:
  • No parameters

Methods

public static Object compatibleCast(Object argumentValues, Class<?> parameterTypes)
Parameters:
  • Object argumentValues
  • Class<?> parameterTypes
public static <T>T compatibleCast(Object value, Class<T> type)
Parameters:
  • Object value
  • Class<T> type