private static boolean matchesServiceUuid(@NonNull  final UUID uuid,
											  @Nullable final UUID mask,
											  @NonNull  final UUID data) {
		if (mask == null) {
			return uuid.equals(data);
		}
		if ((uuid.getLeastSignificantBits() & mask.getLeastSignificantBits()) !=
				(data.getLeastSignificantBits() & mask.getLeastSignificantBits())) {
			return false;
		}
		return ((uuid.getMostSignificantBits() & mask.getMostSignificantBits()) ==
				(data.getMostSignificantBits() & mask.getMostSignificantBits()));
	}
private static boolean matchesServiceUuid ( @ NonNull final UUID uuid , @ Nullable final UUID mask , @ NonNull final UUID data ) { if ( mask == null ) { return uuid . equals ( data ) ; } if ( ( uuid . getLeastSignificantBits ( ) & mask . getLeastSignificantBits ( ) ) != ( data . getLeastSignificantBits ( ) & mask . getLeastSignificantBits ( ) ) ) { return false ; } return ( ( uuid . getMostSignificantBits ( ) & mask . getMostSignificantBits ( ) ) == ( data . getMostSignificantBits ( ) & mask . getMostSignificantBits ( ) ) ) ; }
Check if the uuid pattern matches the particular service uuid.