@ Override public < S extends T > Optional < S > findOne ( final Example < S > example ) { final ArangoCursor cursor = findAllInternal ( ( Pageable ) null , example , new HashMap ( ) ) ; return cursor . hasNext ( ) ? Optional . ofNullable ( ( S ) cursor . next ( ) ) : Optional . empty ( ) ; }
Finds one document which matches the given example object