Package com._1c.g5.v8.dt.common
Class Functions
- java.lang.Object
-
- com._1c.g5.v8.dt.common.Functions
-
public class Functions extends Object
Static utility methods pertaining toFunction
instances.All methods return serializable functions as long as they're given serializable parameters.
See the Guava User Guide article on the use of
Function
.
-
-
Constructor Summary
Constructors Constructor Description Functions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Function<org.eclipse.emf.ecore.EStructuralFeature,String>
featureName()
Returns a function that returns name ofEStructuralFeature
static com.google.common.base.Function<org.eclipse.emf.ecore.EStructuralFeature,String>
featureToLabel()
Returns a function that returns label byEStructuralFeature
static <F,T>
com.google.common.base.Function<F,T>fromAdapter(Class<T> type)
Returns a function based on adaptable object.static com.google.common.base.Function<Object,Object>
fromConverter(org.eclipse.core.databinding.conversion.IConverter converter)
Returns a function based ondatabinding-converter
static com.google.common.base.Function<org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.common.util.Enumerator>
literalToEnumerator()
Returns a function that returnsEnumerator
byEEnumLiteral
static com.google.common.base.Function<org.eclipse.emf.ecore.EEnumLiteral,String>
literalToLabel()
Returns a function that returns label byEEnumLiteral
-
-
-
Method Detail
-
featureToLabel
public static com.google.common.base.Function<org.eclipse.emf.ecore.EStructuralFeature,String> featureToLabel()
Returns a function that returns label byEStructuralFeature
-
literalToLabel
public static com.google.common.base.Function<org.eclipse.emf.ecore.EEnumLiteral,String> literalToLabel()
Returns a function that returns label byEEnumLiteral
-
literalToEnumerator
public static com.google.common.base.Function<org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.common.util.Enumerator> literalToEnumerator()
Returns a function that returnsEnumerator
byEEnumLiteral
-
featureName
public static com.google.common.base.Function<org.eclipse.emf.ecore.EStructuralFeature,String> featureName()
Returns a function that returns name ofEStructuralFeature
-
fromConverter
public static com.google.common.base.Function<Object,Object> fromConverter(org.eclipse.core.databinding.conversion.IConverter converter)
Returns a function based ondatabinding-converter
-
fromAdapter
public static <F,T> com.google.common.base.Function<F,T> fromAdapter(Class<T> type)
Returns a function based on adaptable object.
-
-