Class BasicTypeInfoComparator
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.core.typeinfo.BasicTypeInfoComparator
-
- All Implemented Interfaces:
Comparator<TypeInfo>
public class BasicTypeInfoComparator extends Object implements Comparator<TypeInfo>
BasicComparator
implementation forTypeInfo
s objects
-
-
Constructor Summary
Constructors Constructor Description BasicTypeInfoComparator(Function<TypeInfo,org.eclipse.xtext.naming.QualifiedName> typeInfoQualifiedNameProfider)
Creates a newComparator
for instances ofTypeInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(TypeInfo o1, TypeInfo o2)
Compares the givenTypeInfo
s first by their order, then by their code; the script variant provided in constructor specifies what code to use.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
BasicTypeInfoComparator
public BasicTypeInfoComparator(Function<TypeInfo,org.eclipse.xtext.naming.QualifiedName> typeInfoQualifiedNameProfider)
Creates a newComparator
for instances ofTypeInfo
.- Parameters:
typeInfoQualifiedNameProfider
- function provide QualifiedName by typeInfo, cannot benull
.
-
-