public static Function < EREEventMention , TYPE > typeFunction ( ) { return new Function < EREEventMention , TYPE > ( ) { @ Override public TYPE apply ( final EREEventMention input ) { return input . getType ( ) ; } } ; }
guava style functions