本文整理了Java中javax.annotation.Nonnull.<init>()
方法的一些代码示例,展示了Nonnull.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Nonnull.<init>()
方法的具体详情如下:
包路径:javax.annotation.Nonnull
类名称:Nonnull
方法名:<init>
暂无
代码示例来源:origin: apache/flink
public StandaloneJobClusterConfiguration(@Nonnull String configDir, @Nonnull Properties dynamicProperties, @Nonnull String[] args, @Nullable String hostname, int restPort, @Nonnull String jobClassName, @Nonnull SavepointRestoreSettings savepointRestoreSettings) {
super(configDir, dynamicProperties, args, hostname, restPort);
this.jobClassName = jobClassName;
this.savepointRestoreSettings = savepointRestoreSettings;
}
代码示例来源:origin: neo4j/neo4j
private SettingBuilder( @Nonnull final String name, @Nonnull final Function<String,T> parser, @Nullable final String defaultValue )
{
this.name = name;
this.parser = parser;
this.defaultValue = defaultValue;
}
代码示例来源:origin: neo4j/neo4j
/**
* Shorthand for {@code errorLogger().log( format, arguments )}
*
* @param format A string format for writing a message
* @param arguments Arguments to substitute into the message according to the {@code format}
*/
void error( @Nonnull String format, @Nullable Object... arguments );
代码示例来源:origin: neo4j/neo4j
/**
* Shorthand for {@code infoLogger().log( format, arguments )}
*
* @param format A string format for writing a message
* @param arguments Arguments to substitute into the message according to the format
*/
void info( @Nonnull String format, @Nullable Object... arguments );
代码示例来源:origin: neo4j/neo4j
/**
* Shorthand for {@code warnLogger().log( format, arguments )}
*
* @param format A string format for writing a message
* @param arguments Arguments to substitute into the message according to the format
*/
void warn( @Nonnull String format, @Nullable Object... arguments );
代码示例来源:origin: neo4j/neo4j
private AsyncLogEvent( @Nonnull Object target, @Nonnull String message, @Nullable Object parameter )
{
this.target = target;
this.message = message;
this.parameter = parameter;
this.timestamp = System.currentTimeMillis();
}
代码示例来源:origin: neo4j/neo4j
/**
* Shorthand for {@code debugLogger().log( format, arguments )}
*
* @param format A string format for writing a message
* @param arguments Arguments to substitute into the message according to the format
*/
void debug( @Nonnull String format, @Nullable Object... arguments );
代码示例来源:origin: Tencent/tinker
public void addCatch(@Nullable String type, @Nonnull Label from, @Nonnull Label to,
@Nonnull Label handler) {
tryBlocks.add(new BuilderTryBlock(from, to, type, handler));
}
代码示例来源:origin: neo4j/neo4j
@Override
public void error( @Nonnull String format, @Nullable Object... arguments )
{
}
代码示例来源:origin: neo4j/neo4j
private AsyncLogEvent( @Nonnull Object target, @Nullable Object parameter )
{
this( target, "", parameter );
}
代码示例来源:origin: neo4j/neo4j
/**
* Provide a file for initial configuration. The settings added with the {@link Builder#withSettings(Map)}
* methods will be applied on top of the settings in the file.
*
* @param configFile A configuration file to parse for initial settings.
*/
@Nonnull
public Builder withFile( final @Nullable File configFile )
{
this.configFile = configFile;
return this;
}
代码示例来源:origin: Tencent/tinker
public void addCatch(@Nullable TypeReference type, @Nonnull Label from,
@Nonnull Label to, @Nonnull Label handler) {
tryBlocks.add(new BuilderTryBlock(from, to, type, handler));
}
代码示例来源:origin: neo4j/neo4j
@Override
public void info( @Nonnull String format, @Nullable Object... arguments )
{
}
代码示例来源:origin: neo4j/neo4j
/**
* @param format A string format for writing a message
* @param arguments Arguments to substitute into the message according to the {@code format}
*/
void log( @Nonnull String format, @Nullable Object... arguments );
代码示例来源:origin: neo4j/neo4j
@Override
public void warn( @Nonnull String format, @Nullable Object... arguments )
{
}
代码示例来源:origin: apache/flink
public RocksDBWriteBatchWrapper(@Nonnull RocksDB rocksDB, @Nullable WriteOptions options) {
this(rocksDB, options, 500);
}
代码示例来源:origin: neo4j/neo4j
@Override
public void debug( @Nonnull String format, @Nullable Object... arguments )
{
}
代码示例来源:origin: neo4j/neo4j
@Nonnull
private Map<String, String> injectDefaultProviderIfMissing( @Nullable String indexName, @Nonnull Config dbConfig,
@Nonnull Map<String, String> config )
{
String provider = config.get( PROVIDER );
if ( provider == null )
{
config = new HashMap<>( config );
config.put( PROVIDER, getDefaultProvider( indexName, dbConfig ) );
}
return config;
}
代码示例来源:origin: Graylog2/graylog2-server
@Nullable
@Override
public Message decode(@Nonnull RawMessage rawMessage) {
throw new UnsupportedOperationException("MultiMessageCodec " + getClass() + " does not support decode()");
}
代码示例来源:origin: jenkinsci/jenkins
@Override
/*
* We need this for JENKINS-26143 -- reflective creation cannot handle setChoices(Object). See that method for context.
*/
public ParameterDefinition newInstance(@Nullable StaplerRequest req, @Nonnull JSONObject formData) throws FormException {
String name = formData.getString("name");
String desc = formData.getString("description");
String choiceText = formData.getString("choices");
return new ChoiceParameterDefinition(name, choiceText, desc);
}
内容来源于网络,如有侵权,请联系作者删除!