TUM CCSM Commons

edu.tum.cs.commons.reflect
Class MethodNameComparator

java.lang.Object
  extended by edu.tum.cs.commons.collections.IdentifierBasedComparatorBase<java.lang.String,java.lang.reflect.Method>
      extended by edu.tum.cs.commons.reflect.MethodNameComparator
All Implemented Interfaces:
java.util.Comparator<java.lang.reflect.Method>

public class MethodNameComparator
extends IdentifierBasedComparatorBase<java.lang.String,java.lang.reflect.Method>

This comparator compares methods by their name.

Version:
$Rev: 26283 $
Author:
deissenb, $Author: juergens $
Rating:
GREEN Hash: 6DF480EAA650ED041BC73D1FAB8CD972

Field Summary
static MethodNameComparator INSTANCE
          Instance of this comparator.
 
Constructor Summary
MethodNameComparator()
           
 
Method Summary
protected  java.lang.String obtainIdentifier(java.lang.reflect.Method method)
          Returns method name.
 
Methods inherited from class edu.tum.cs.commons.collections.IdentifierBasedComparatorBase
compare
 
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
 

Field Detail

INSTANCE

public static final MethodNameComparator INSTANCE
Instance of this comparator.

Constructor Detail

MethodNameComparator

public MethodNameComparator()
Method Detail

obtainIdentifier

protected java.lang.String obtainIdentifier(java.lang.reflect.Method method)
Returns method name.

Specified by:
obtainIdentifier in class IdentifierBasedComparatorBase<java.lang.String,java.lang.reflect.Method>

TUM CCSM Commons

TUM CCSM Commons - 2.7