public class StreamRefactoringUtil
extends java.lang.Object
| Constructor and Description |
|---|
StreamRefactoringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
generateMapOperation(PsiVariable variable,
PsiType outType,
PsiElement mapper) |
static java.lang.String |
getFlatMapOperationName(PsiType inType,
PsiType outType) |
static java.lang.String |
getMapOperationName(PsiType inType,
PsiType outType)
Returns name of the Stream API mapping operation which maps from inType to outType (assuming both types are supported by Stream API)
|
static java.lang.String |
getShortcutMappingMethod(PsiVariable variable,
PsiType outType,
PsiElement mapper)
Returns the shortcut mapping method name
|
public static java.lang.String generateMapOperation(PsiVariable variable, PsiType outType, PsiElement mapper)
public static java.lang.String getShortcutMappingMethod(PsiVariable variable, PsiType outType, PsiElement mapper)
variable - mapper input variableoutType - output type of the mappermapper - mapper codepublic static java.lang.String getMapOperationName(PsiType inType, PsiType outType)
inType - input stream element typeoutType - output stream element type