Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sshd.common;
import java.nio.charset.Charset;
import java.time.Duration;
import java.util.Collection;
import java.util.Collections;
import java.util.EnumSet;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.Optional;
import java.util.function.Consumer;
import org.apache.sshd.common.util.ValidateUtils;
/**
* Property definition.
*
* @param The generic property type
* @author Apache MINA SSHD Project
*/
public interface Property extends NamedResource {
static Property string(String name) {
return string(name, null);
}
static Property string(String name, String def) {
return new StringProperty(name, def);
}
static Property bool(String name) {
return new BooleanProperty(name);
}
static Property bool(String name, boolean def) {
return new BooleanProperty(name, def);
}
static Property integer(String name) {
return new IntegerProperty(name);
}
static Property integer(String name, int def) {
return new IntegerProperty(name, def);
}
// CHECKSTYLE:OFF
static Property long_(String name) {
return new LongProperty(name);
}
static Property long_(String name, long def) {
return new LongProperty(name, def);
}
static > Property enum_(String name, Class type) {
return enum_(name, type, null);
}
static > Property enum_(String name, Class type, T def) {
return new EnumProperty<>(name, type, def);
}
// CHECKSTYLE:ON
static Property duration(String name) {
return duration(name, null);
}
static Property duration(String name, Duration def) {
return new DurationProperty(name, def);
}
static Property duration(String name, Duration def, Duration min) {
return new DurationProperty(name, def, min);
}
static Property durationSec(String name) {
return durationSec(name, null);
}
static Property durationSec(String name, Duration def) {
return new DurationInSecondsProperty(name, def);
}
static Property durationSec(String name, Duration def, Duration min) {
return new DurationInSecondsProperty(name, def, min);
}
static Property charset(String name) {
return charset(name, null);
}
static Property charset(String name, Charset def) {
return new CharsetProperty(name, def);
}
static Property