public Entry getEntryByUUID ( final UUID UUID ) { List < Entry > allEntries = getEntries ( ) ; List < Entry > entries = ListFilter . filter ( allEntries , new Filter < Entry > ( ) { @ Override public boolean matches ( Entry item ) { if ( item . getUuid ( ) != null && item . getUuid ( ) . compareTo ( UUID ) == 0 ) { return true ; } else { return false ; } } } ) ; if ( entries . size ( ) == 1 ) { return entries . get ( 0 ) ; } else { return null ; } }
Retrieves an entry based on its UUID .