本文整理了Java中com.android.annotations.NonNull.<init>()
方法的一些代码示例,展示了NonNull.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NonNull.<init>()
方法的具体详情如下:
包路径:com.android.annotations.NonNull
类名称:NonNull
方法名:<init>
暂无
代码示例来源:origin: simpligility/android-maven-plugin
public static Collection< Artifact > filterArtifacts( @NonNull Iterable< Artifact > artifacts,
final boolean skipDependencies, @Nullable final Collection< String > includeArtifactTypes,
@Nullable final Collection< String > excludeArtifactTypes,
@Nullable final Collection< String > includeArtifactQualifiers,
@Nullable final Collection< String > excludeArtifactQualifiers )
代码示例来源:origin: simpligility/android-maven-plugin
@NonNull
@Override
public ProcessResult execute(
@NonNull JavaProcessInfo processInfo,
@NonNull ProcessOutputHandler processOutputHandler )
command.add( processInfo.getExecutable() );
command.addAll( processInfo.getArgs() );
String commandString = Joiner.on( ' ' ).join( command );
代码示例来源:origin: simpligility/android-maven-plugin
private void publishApk( @NonNull String packageName ) throws MojoExecutionException
{
try
{
getLog().info( "Starting upload of apk " + apkFile.getAbsolutePath() );
FileContent newApkFile = new FileContent( AndroidPublisherHelper.MIME_TYPE_APK, apkFile );
Apk apk = edits.apks().upload( packageName, editId, newApkFile ).execute();
List<Integer> versionCodes = new ArrayList<Integer>();
versionCodes.add( apk.getVersionCode() );
Track newTrack = new Track().setVersionCodes( versionCodes );
edits.tracks().update( packageName, editId, track, newTrack ).execute();
publishWhatsNew( packageName, edits, editId, apk );
edits.commit( packageName, editId ).execute();
}
catch ( Exception e )
{
throw new MojoExecutionException( e.getMessage(), e );
}
}
代码示例来源:origin: com.android.tools.build/gradle-core
@NonNull
@Override
public SyncIssue handleIssue(@Nullable String data, int type, int severity,
@NonNull String msg) {
SyncIssue issue = syncIssueHandler.handleIssue(data, type, severity, msg);
syncIssues.add(issue);
return issue;
}
}
代码示例来源:origin: com.android.tools.build/gradle-core
@NonNull
private static List<AnnotationEntryAndValue> splitToEntries(@Nullable List values) {
if (values == null) return Collections.emptyList();
List<AnnotationEntryAndValue> result = new ArrayList<AnnotationEntryAndValue>();
for (int i = 0; i < values.size(); i += 2) {
String name = (String) values.get(i);
Object value = values.get(i + 1);
result.add(new AnnotationEntryAndValue(name, value));
}
return result;
}
}
代码示例来源:origin: testwhat/SmaliEx
@Override
public void deviceListUpdate(@NonNull Map<String, DeviceState> devices) {
List<Device> l = new ArrayList<>(devices.size());
for (Map.Entry<String, DeviceState> entry : devices.entrySet()) {
l.add(new Device(entry.getKey(), entry.getValue()));
}
// now merge the new devices with the old ones.
updateDevices(l);
}
}
代码示例来源:origin: com.android.tools.build/gradle-core
private ParameterItem(
@NonNull String containingClass,
@NonNull ClassKind classKind,
@Nullable String returnType,
@NonNull String methodName,
@NonNull String parameterList,
boolean isConstructor,
@NonNull String argIndex) {
super(containingClass, classKind, returnType, methodName, parameterList, isConstructor);
this.argIndex = argIndex;
}
代码示例来源:origin: com.android.tools.lint/lint-api
public ReportedEntry(@NonNull Issue issue, @Nullable Project project,
@NonNull Location location, @NonNull String message) {
this.issue = issue;
this.location = location;
this.project = project;
this.message = message;
}
代码示例来源:origin: com.android.tools.lint/lint-api
public Entry(
@NonNull String issueId,
@NonNull String message,
@NonNull String path,
@Nullable String line) {
this.issueId = issueId;
this.message = message;
this.path = path;
this.line = line;
}
}
代码示例来源:origin: com.android.tools.build/gradle-core
public void reset(
@NonNull ProductFlavor defaultConfig,
@NonNull BuildType buildType,
@NonNull VariantType type,
@Nullable List<ProductFlavor> flavors) {
ignore = false;
this.defaultConfig = defaultConfig;
this.buildType = buildType;
this.flavors = flavors;
this.type = type;
this.name = null;
}
代码示例来源:origin: com.android.tools.lint/lint
public ExternalPsiNameValuePair(
@Nullable String name,
@NonNull String literal,
@NonNull PsiAnnotationMemberValue value) {
//noinspection ConstantConditions
super(null);
mName = name;
mLiteral = literal;
mMemberValue = value;
}
代码示例来源:origin: com.android.tools.lint/lint
protected EcjPsiMember(@NonNull EcjPsiManager manager, @NonNull EcjPsiClass containingClass,
@Nullable ASTNode ecjNode) {
super(manager, ecjNode);
mContainingClass = containingClass;
}
代码示例来源:origin: com.android.tools.build/builder
/**
* Installs an Android Sdk Tool if it's not already installed.
*
* @param sdkLibData contains all the components for downloading.
* @param packageId the package/id path of the required Tool component.
* @return a {@code File} representing the locations to the directory where the Tool component
* is installed or null if we haven't managed to find such a component.
**/
@Nullable
File installSdkTool(@NonNull SdkLibData sdkLibData, @NonNull String packageId);
}
代码示例来源:origin: com.android.tools.lint/lint-tests
protected TestConfiguration(
@NonNull LintClient client,
@NonNull Project project,
@Nullable Configuration parent) {
super(client, project, parent);
}
代码示例来源:origin: com.android.tools.build/gradle-api
/**
* @deprecated replaced by {@link #transform(TransformInvocation)}.
*/
@Deprecated
@SuppressWarnings("UnusedParameters")
public void transform(
@NonNull Context context,
@NonNull Collection<TransformInput> inputs,
@NonNull Collection<TransformInput> referencedInputs,
@Nullable TransformOutputProvider outputProvider,
boolean isIncremental) throws IOException, TransformException, InterruptedException {
}
代码示例来源:origin: com.android.tools.build/gradle-core
ProductFlavorData(
@NonNull T productFlavor,
@NonNull DefaultAndroidSourceSet sourceSet,
@Nullable DefaultAndroidSourceSet androidTestSourceSet,
@Nullable DefaultAndroidSourceSet unitTestSourceSet,
@NonNull Project project) {
super(sourceSet, androidTestSourceSet, unitTestSourceSet, project);
this.productFlavor = productFlavor;
}
代码示例来源:origin: com.android.tools.build/gradle-core
FlatDependencyContainer(
@NonNull DependencyGraph dependencyGraph,
@NonNull List<Dependency> allDependencies,
@NonNull List<Dependency> directDependencies,
@Nullable AtomDependency baseAtom,
@NonNull MutableDependencyDataMap mutableDependencyDataMap) {
this.dependencyGraph = dependencyGraph;
this.allDependencies = ImmutableList.copyOf(allDependencies);
this.directDependencies = ImmutableList.copyOf(directDependencies);
this.baseAtom = baseAtom;
this.mutableDependencyDataMap = mutableDependencyDataMap;
}
代码示例来源:origin: com.android.tools.lint/lint-api
@Nullable
private static String getInterface(@NonNull String cls) {
switch (cls) {
case CHECKED_TEXT_VIEW:
case COMPOUND_BUTTON:
return CHECKABLE;
default:
return null;
}
}
}
代码示例来源:origin: com.android.tools.lint/lint-api
public Value(@NonNull String name, @Nullable Object value) {
this.name = name;
this.value = value;
}
}
代码示例来源:origin: com.android.tools.lint/lint-api
/**
* Try to determine the path to the .jar file containing the element, <b>if</b> applicable
*/
@Nullable
public abstract String findJarPath(@NonNull PsiElement element);
内容来源于网络,如有侵权,请联系作者删除!