Class SetterSugar

  • All Implemented Interfaces:

    
    public class SetterSugar
    
                        
    if (str != null) {
        dto.setStr(str);
    }
    If(dto::setStr, str);
    
    f (dto.getStr() == null) {
        dto.setStr(str);
    }
    If(dto::setStr, str, dto.getStr() == null);
    
    if (Objects.nonNull(str)) {
        dto.setStr(str);
    }
    If(dto::setStr, str, Objects::nonNull);
    
    Since:

    2024-05-21

    Author:

    trydofor