public class

ObjectToFieldValueMapper

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.statistics.util.ObjectToFieldValueMapper

Class Overview

Converts a given object returned from a StatisticsMapperWrapper result set into an appropriate form, e.g. a label for a pie chart. Determines what the type is and invokes the appropriate method on a transformer for conversion

Summary

Public Constructors
ObjectToFieldValueMapper()
Public Methods
static <T> T transform(String fieldType, Object input, String url, FieldValueToDisplayTransformer<T> transformer)
Transforms the object in stats result set into an appropriate type specified by the given transformer.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ObjectToFieldValueMapper ()

Public Methods

public static T transform (String fieldType, Object input, String url, FieldValueToDisplayTransformer<T> transformer)

Transforms the object in stats result set into an appropriate type specified by the given transformer.

Parameters
fieldType the fieldType the statsMapperWrapper was created for
input the object to convert
url an optional url to associate with the object
transformer the transformer to do the actual conversion. The return type is determined by this object
Returns
  • the result of the conversion