src/main/java/org/odessajavaclub/user/shared/UserIdMapper.java
public Long asId(UserId userId) {
    if (userId == null) {
      return null;
    }
    return userId.getValue();
  }
/**
   * Maps {@link UserId} to long id value.
   *
   * @param userId {@link UserId}
   * @return long id value
   */
Maps  UserId to long id value.
@param userId  UserId
@return long id value
Maps UserId to long id value . @param userId UserId @return long id value
public Long asId(UserId userId) {
    if (userId == null) {
      return null;
    }
    return userId.getValue();
  }
public Long asId ( UserId userId ) { if ( userId == null ) { return null ; } return userId . getValue ( ) ; }
Maps {@link UserId} to long id value.
Maps { @link UserId } to long id value .