当前位置: 首页>>代码示例>>Java>>正文


Java ImmutableUtils.nullToEmptyList方法代码示例

本文整理汇总了Java中org.jf.util.ImmutableUtils.nullToEmptyList方法的典型用法代码示例。如果您正苦于以下问题:Java ImmutableUtils.nullToEmptyList方法的具体用法?Java ImmutableUtils.nullToEmptyList怎么用?Java ImmutableUtils.nullToEmptyList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jf.util.ImmutableUtils的用法示例。


在下文中一共展示了ImmutableUtils.nullToEmptyList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ImmutableClassDef

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableClassDef(@Nonnull String type,
                         int accessFlags,
                         @Nullable String superclass,
                         @Nullable ImmutableList<String> interfaces,
                         @Nullable String sourceFile,
                         @Nullable ImmutableSet<? extends ImmutableAnnotation> annotations,
                         @Nullable ImmutableSortedSet<? extends ImmutableField> staticFields,
                         @Nullable ImmutableSortedSet<? extends ImmutableField> instanceFields,
                         @Nullable ImmutableSortedSet<? extends ImmutableMethod> directMethods,
                         @Nullable ImmutableSortedSet<? extends ImmutableMethod> virtualMethods) {
    this.type = type;
    this.accessFlags = accessFlags;
    this.superclass = superclass;
    this.interfaces = ImmutableUtils.nullToEmptyList(interfaces);
    this.sourceFile = sourceFile;
    this.annotations = ImmutableUtils.nullToEmptySet(annotations);
    this.staticFields = ImmutableUtils.nullToEmptySortedSet(staticFields);
    this.instanceFields = ImmutableUtils.nullToEmptySortedSet(instanceFields);
    this.directMethods = ImmutableUtils.nullToEmptySortedSet(directMethods);
    this.virtualMethods = ImmutableUtils.nullToEmptySortedSet(virtualMethods);
}
 
开发者ID:johnlee175,项目名称:dex,代码行数:22,代码来源:ImmutableClassDef.java

示例2: ImmutableMethodImplementation

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethodImplementation(int registerCount,
                                     @Nullable ImmutableList<? extends ImmutableInstruction> instructions,
                                     @Nullable ImmutableList<? extends ImmutableTryBlock> tryBlocks,
                                     @Nullable ImmutableList<? extends ImmutableDebugItem> debugItems) {
    this.registerCount = registerCount;
    this.instructions = ImmutableUtils.nullToEmptyList(instructions);
    this.tryBlocks = ImmutableUtils.nullToEmptyList(tryBlocks);
    this.debugItems = ImmutableUtils.nullToEmptyList(debugItems);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:10,代码来源:ImmutableMethodImplementation.java

示例3: ImmutableArrayPayload

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableArrayPayload(int elementWidth,
                             @Nullable ImmutableList<Number> arrayElements) {
    super(OPCODE);
    //TODO: need to ensure this is a valid width (1, 2, 4, 8)
    this.elementWidth = elementWidth;
    //TODO: need to validate the elements fit within the width
    this.arrayElements = ImmutableUtils.nullToEmptyList(arrayElements);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:9,代码来源:ImmutableArrayPayload.java

示例4: ImmutableTryBlock

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableTryBlock(int startCodeAddress,
                         int codeUnitCount,
                         @Nullable ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) {
    this.startCodeAddress = startCodeAddress;
    this.codeUnitCount = codeUnitCount;
    this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:8,代码来源:ImmutableTryBlock.java

示例5: ImmutableMethod

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethod(@Nonnull String definingClass,
                       @Nonnull String name,
                       @Nullable ImmutableList<? extends ImmutableMethodParameter> parameters,
                       @Nonnull String returnType,
                       int accessFlags,
                       @Nullable ImmutableSet<? extends ImmutableAnnotation> annotations,
                       @Nullable ImmutableMethodImplementation methodImplementation) {
    this.definingClass = definingClass;
    this.name = name;
    this.parameters = ImmutableUtils.nullToEmptyList(parameters);
    this.returnType = returnType;
    this.accessFlags = accessFlags;
    this.annotations = ImmutableUtils.nullToEmptySet(annotations);
    this.methodImplementation = methodImplementation;
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:16,代码来源:ImmutableMethod.java

示例6: ImmutableMethodReference

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethodReference(@Nonnull String definingClass,
                                @Nonnull String name,
                                @Nullable ImmutableList<String> parameters,
                                @Nonnull String returnType) {
    this.definingClass = definingClass;
    this.name = name;
    this.parameters = ImmutableUtils.nullToEmptyList(parameters);
    this.returnType = returnType;
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:10,代码来源:ImmutableMethodReference.java

示例7: ImmutableMethodImplementation

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethodImplementation(int registerCount,
                                      ImmutableList<? extends ImmutableInstruction> instructions,
                                      ImmutableList<? extends ImmutableTryBlock> tryBlocks,
                                      ImmutableList<? extends ImmutableDebugItem> debugItems) {
    this.registerCount = registerCount;
    this.instructions = ImmutableUtils.nullToEmptyList(instructions);
    this.tryBlocks = ImmutableUtils.nullToEmptyList(tryBlocks);
    this.debugItems = ImmutableUtils.nullToEmptyList(debugItems);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:10,代码来源:ImmutableMethodImplementation.java

示例8: ImmutableArrayPayload

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableArrayPayload(int elementWidth,
                              ImmutableList<Number> arrayElements) {
    super(OPCODE);
    //TODO: need to ensure this is a valid width (1, 2, 4, 8)
    this.elementWidth = elementWidth;
    //TODO: need to validate the elements fit within the width
    this.arrayElements = ImmutableUtils.nullToEmptyList(arrayElements);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:9,代码来源:ImmutableArrayPayload.java

示例9: ImmutableTryBlock

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableTryBlock(int startCodeAddress,
                         int codeUnitCount,
                          ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) {
    this.startCodeAddress = startCodeAddress;
    this.codeUnitCount = codeUnitCount;
    this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:8,代码来源:ImmutableTryBlock.java

示例10: ImmutableMethod

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethod( String definingClass,
                        String name,
                        ImmutableList<? extends ImmutableMethodParameter> parameters,
                        String returnType,
                       int accessFlags,
                        ImmutableSet<? extends ImmutableAnnotation> annotations,
                        ImmutableMethodImplementation methodImplementation) {
    this.definingClass = definingClass;
    this.name = name;
    this.parameters = ImmutableUtils.nullToEmptyList(parameters);
    this.returnType = returnType;
    this.accessFlags = accessFlags;
    this.annotations = ImmutableUtils.nullToEmptySet(annotations);
    this.methodImplementation = methodImplementation;
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:16,代码来源:ImmutableMethod.java

示例11: ImmutableMethodReference

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethodReference( String definingClass,
                                 String name,
                                 ImmutableList<String> parameters,
                                 String returnType) {
    this.definingClass = definingClass;
    this.name = name;
    this.parameters = ImmutableUtils.nullToEmptyList(parameters);
    this.returnType = returnType;
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:10,代码来源:ImmutableMethodReference.java

示例12: ImmutablePackedSwitchPayload

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutablePackedSwitchPayload(
        @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) {
    super(OPCODE);
    this.switchElements = ImmutableUtils.nullToEmptyList(switchElements);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:6,代码来源:ImmutablePackedSwitchPayload.java

示例13: ImmutableSparseSwitchPayload

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableSparseSwitchPayload(
        @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) {
    super(OPCODE);
    this.switchElements = ImmutableUtils.nullToEmptyList(switchElements);
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:6,代码来源:ImmutableSparseSwitchPayload.java

示例14: ImmutablePackedSwitchPayload

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutablePackedSwitchPayload(
         ImmutableList<? extends ImmutableSwitchElement> switchElements) {
    super(OPCODE);
    this.switchElements = ImmutableUtils.nullToEmptyList(switchElements);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:6,代码来源:ImmutablePackedSwitchPayload.java

示例15: ImmutableSparseSwitchPayload

import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableSparseSwitchPayload(
         ImmutableList<? extends ImmutableSwitchElement> switchElements) {
    super(OPCODE);
    this.switchElements = ImmutableUtils.nullToEmptyList(switchElements);
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:6,代码来源:ImmutableSparseSwitchPayload.java


注:本文中的org.jf.util.ImmutableUtils.nullToEmptyList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。