Skip to content

Instantly share code, notes, and snippets.

Hakuna matata

Nazar Lelyak nazar-art

Hakuna matata
  • Ukraine, Lviv
View GitHub Profile
View check if permission is valid -> if not check parent
IotPermission permission = null;
// get only valid permissions
List<IotPermission> permissions = getValidPermissionsListByPlateNumber(plateNumber);
// check if permission is for this carpark
boolean isCarparkFound = false;
for (IotPermission perm : permissions) {
if (carparkId.equals(perm.getCarParkRef())) {
isCarparkFound = true;
permission = perm;
View Users names generation - for performance test
package com.demo.test;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
public class UsersGeneratorForTFX {