org.babyfish.collection.ArrayList类的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(179)

本文整理了Java中org.babyfish.collection.ArrayList类的一些代码示例,展示了ArrayList类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ArrayList类的具体详情如下:
包路径:org.babyfish.collection.ArrayList
类名称:ArrayList

ArrayList介绍

暂无

代码示例

代码示例来源:origin: babyfish-ct/babyfish

@Override
  protected XList<E> createDefaultBase(
      UnifiedComparator<? super E> unifiedComparator) {
    return new ArrayList<E>(unifiedComparator);
  }
}

代码示例来源:origin: babyfish-ct/babyfish

protected static MethodNode createMethodNode(
    int access, 
    String name, 
    String desc, 
    String signatrue, 
    String ... exceptions) {
  ArrayList<String> exceptionList = new ArrayList<String>();
  for (String exception : exceptions) {
    exceptionList.add(exception);
  }
  MethodNode methodNode = new MethodNode(Opcodes.ASM5);
  methodNode.access = access;
  methodNode.name = name;
  methodNode.desc = desc;
  methodNode.signature = signatrue;
  methodNode.exceptions = exceptionList;
  methodNode.tryCatchBlocks = new ArrayList<TryCatchBlockNode>();
  methodNode.localVariables = new ArrayList<LocalVariableNode>();
  return methodNode;
}

代码示例来源:origin: babyfish-ct/babyfish

public ArrayList(Comparator<? super E> comparator, Collection<? extends E> c) {
  super(
      new ArrayElements<>(
          BidiType.NONE, 
          comparator,
          8,
          1.5F,
          .75F
      )
  );
  this.addAll(c);
}

代码示例来源:origin: babyfish-ct/babyfish

private void writeObject(ObjectOutputStream out) throws IOException {
  this.writeState(out);
}

代码示例来源:origin: babyfish-ct/babyfish

private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException {
  this.readState(in);
}

代码示例来源:origin: babyfish-ct/babyfish

public CoalesceExpression(XCriteriaBuilder criteriaBuilder) {
  super(criteriaBuilder);
  this.values = new ArrayList<>();
}

代码示例来源:origin: babyfish-ct/babyfish

@SuppressWarnings("unchecked")
@Override
public Serializable getSnapshot(CollectionPersister persister)
    throws HibernateException {
  MAList<E> baseList = this.getBase();
  ArrayList<E> clonedList = new ArrayList<E>(baseList.unifiedComparator(), baseList.size());
  Iterator<E> iter = baseList.iterator();
  while (iter.hasNext()) {
    E deepCopy = 
        (E)persister
        .getElementType()
        .deepCopy(iter.next(), persister.getFactory());
    clonedList.add(deepCopy);
  }
  return clonedList;
}

代码示例来源:origin: babyfish-ct/babyfish

public ArrayList(int initCapacity, Collection<? extends E> c) {
  super(
      new ArrayElements<>(
          BidiType.NONE, 
          null,
          initCapacity,
          1.5F,
          .75F
      )
  );
  this.addAll(c);
}

代码示例来源:origin: babyfish-ct/babyfish

public SearchedCaseExpression(XCriteriaBuilder criteriaBuilder) {
  super(criteriaBuilder);
  this.whenClauses = new ArrayList<>();
}

代码示例来源:origin: babyfish-ct/babyfish

public ArrayList(BidiType bidiType, Collection<? extends E> c) {
  super(
      new ArrayElements<>(
          bidiType, 
          null,
          8,
          1.5F,
          .75F
      )
  );
  this.addAll(c);
}

代码示例来源:origin: babyfish-ct/babyfish

protected static MethodNode createMethodNode(
    int access, String name, String desc, String signature, List<String> exceptions) {
  MethodNode methodNode = new MethodNode(Opcodes.ASM5);
  methodNode.access = access;
  methodNode.name = name;
  methodNode.desc = desc;
  methodNode.signature = signature;
  methodNode.exceptions = exceptions != null ? new ArrayList<String>() : new ArrayList<String>();
  methodNode.localVariables = new ArrayList<LocalVariableNode>();
  methodNode.tryCatchBlocks = new ArrayList<TryCatchBlockNode>();
  return methodNode;
}

代码示例来源:origin: babyfish-ct/babyfish

public ArrayList(BidiType bidiType, Comparator<? super E> comparator, Collection<? extends E> c) {
  super(
      new ArrayElements<>(
          bidiType, 
          comparator,
          8,
          1.5F,
          .75F
      )
  );
  this.addAll(c);
}

代码示例来源:origin: babyfish-ct/babyfish

private static List<Column> sort(List<Column> columns) {
  List<Column> list = new ArrayList<>(columns);
  Collections.sort(list, new Comparator<Column>() {
    @Override
    public int compare(Column c1, Column c2) {
      return DbIdentifiers.laxIdentifier(c1.name).compareTo(
          DbIdentifiers.laxIdentifier(c2.name)
      );
    }
  });
  return list;
}

代码示例来源:origin: babyfish-ct/babyfish

public ArrayList(UnifiedComparator<? super E> unifiedComparator, Collection<? extends E> c) {
  super(
      new ArrayElements<>(
          BidiType.NONE, 
          unifiedComparator,
          8,
          1.5F,
          .75F
      )
  );
  this.addAll(c);
}

代码示例来源:origin: babyfish-ct/babyfish

public ArrayList<E> build() {
    if (this.equalityComparator != null) {
      return new ArrayList<>(
          this.bidiType,
          this.equalityComparator,
          this.initCapacity,
          this.expandFactor,
          this.collapseFactor
      );
    } else if (this.comparator != null) {
      return new ArrayList<>(
          this.bidiType,
          this.comparator,
          this.initCapacity,
          this.expandFactor,
          this.collapseFactor
      );
    } else {
      return new ArrayList<>(
          this.bidiType,
          this.unifiedComparator,
          this.initCapacity,
          this.expandFactor,
          this.collapseFactor
      );
    }
  }
}

代码示例来源:origin: babyfish-ct/babyfish

public ArrayList(BidiType bidiType, UnifiedComparator<? super E> unifiedComparator, Collection<? extends E> c) {
  super(
      new ArrayElements<>(
          bidiType, 
          unifiedComparator,
          8,
          1.5F,
          .75F
      )
  );
  this.addAll(c);
}

代码示例来源:origin: babyfish-ct/babyfish

private static List<Element> getChildElements(Element element, String childElementName) {
  List<Element> elements = new ArrayList<>();
  for (Node childNode = element.getFirstChild(); 
      childNode != null;
      childNode = childNode.getNextSibling()) {
    if (childNode instanceof Element && childNode.getLocalName().equals(childElementName)) {
      elements.add((Element)childNode);
    }
  }
  return elements;
}

代码示例来源:origin: babyfish-ct/babyfish

public ArrayList(EqualityComparator<? super E> equalityComparator, Collection<? extends E> c) {
  super(
      new ArrayElements<>(
          BidiType.NONE, 
          equalityComparator,
          8,
          1.5F,
          .75F
      )
  );
  this.addAll(c);
}

代码示例来源:origin: babyfish-ct/babyfish

public OrderNodeImpl(int sequence, JoinNodeImpl parentNode, String quanifiedName, boolean post, boolean desc) {
  this.names = new ArrayList<>();
  this.quanifiedName = quanifiedName;
  if (quanifiedName.indexOf('.') == -1) {
    this.names.add(quanifiedName);
  } else {
    for (String name : DOT.split(quanifiedName)) {
      this.names.add(name);
    }
  }
  this.sequence = sequence;
  this.parentNode = parentNode;
  this.post = post;
  this.desc = desc;
}

代码示例来源:origin: babyfish-ct/babyfish

public ArrayList(BidiType bidiType, EqualityComparator<? super E> equalityComparator, Collection<? extends E> c) {
  super(
      new ArrayElements<>(
          bidiType, 
          equalityComparator,
          8,
          1.5F,
          .75F
      )
  );
  this.addAll(c);
}

相关文章

ArrayList类方法