org.pdfsam.i18n.SetLocaleRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pdfsam-i18n Show documentation
Show all versions of pdfsam-i18n Show documentation
Internationalization for PDFsam
The newest version!
/*
* This file is part of the PDF Split And Merge source code
* Created on 24/lug/2014
* Copyright 2017 by Sober Lemur S.r.l. ([email protected]).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package org.pdfsam.i18n;
import static org.sejda.commons.util.RequireUtils.requireNotBlank;
/**
* Request to set a locale to a given IETF BCP 47 language tag string
*
* @author Andrea Vacondio
*/
public record SetLocaleRequest(String languageTag) {
public SetLocaleRequest {
requireNotBlank(languageTag, "Locale string cannot be blank");
}
}