Package com._1c.g5.v8.dt.common
Class Functions
java.lang.Object
com._1c.g5.v8.dt.common.Functions
Static utility methods pertaining to
Function 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.base.Function<org.eclipse.emf.ecore.EStructuralFeature,String> Returns a function that returns name ofEStructuralFeaturestatic com.google.common.base.Function<org.eclipse.emf.ecore.EStructuralFeature,String> Returns a function that returns label byEStructuralFeaturestatic <F,T> com.google.common.base.Function<F, T> fromAdapter(Class<T> type) Returns a function based on adaptable object.fromConverter(org.eclipse.core.databinding.conversion.IConverter converter) Returns a function based ondatabinding-converterstatic com.google.common.base.Function<org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.common.util.Enumerator> Returns a function that returnsEnumeratorbyEEnumLiteralstatic com.google.common.base.Function<org.eclipse.emf.ecore.EEnumLiteral,String> Returns a function that returns label byEEnumLiteral
-
Constructor Details
-
Functions
public Functions()
-
-
Method Details
-
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 returnsEnumeratorbyEEnumLiteral -
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
Returns a function based on adaptable object.
-