org.eclipse.persistence.internal.helper.Helper.copyStringArray()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(156)

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

Helper.copyStringArray介绍

[英]Copy an array of strings to a new array avoids the use of Arrays.copy() because it is not supported in JDK 1.5
[中]将字符串数组复制到新数组可避免使用数组。copy(),因为JDK 1.5不支持它

代码示例

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public void copyTo(ExpressionOperator operator){
  super.copyTo(operator);
  if (operator instanceof ListExpressionOperator){
    ((ListExpressionOperator)operator).startStrings = Helper.copyStringArray(startStrings);
    ((ListExpressionOperator)operator).separators = Helper.copyStringArray(separators);
    ((ListExpressionOperator)operator).terminationStrings = Helper.copyStringArray(terminationStrings);
    // don't copy numberOfItems since this copy method is used to duplicate an operator that
    // may have a different number of items
  }
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public void copyTo(ExpressionOperator operator){
  super.copyTo(operator);
  if (operator instanceof ListExpressionOperator){
    ((ListExpressionOperator)operator).startStrings = Helper.copyStringArray(startStrings);
    ((ListExpressionOperator)operator).separators = Helper.copyStringArray(separators);
    ((ListExpressionOperator)operator).terminationStrings = Helper.copyStringArray(terminationStrings);
    // don't copy numberOfItems since this copy method is used to duplicate an operator that
    // may have a different number of items
  }
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public void copyTo(ExpressionOperator operator){
  super.copyTo(operator);
  if (operator instanceof ListExpressionOperator){
    ((ListExpressionOperator)operator).startStrings = Helper.copyStringArray(startStrings);
    ((ListExpressionOperator)operator).separators = Helper.copyStringArray(separators);
    ((ListExpressionOperator)operator).terminationStrings = Helper.copyStringArray(terminationStrings);
    // don't copy numberOfItems since this copy method is used to duplicate an operator that
    // may have a different number of items
  }
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public void copyTo(ExpressionOperator operator){
  operator.selector = selector;
  operator.isPrefix = isPrefix;
  operator.isRepeating = isRepeating;
  operator.nodeClass = nodeClass;
  operator.type = type;
  operator.databaseStrings = databaseStrings == null ? null : Helper.copyStringArray(databaseStrings);
  operator.argumentIndices = argumentIndices == null ? null : Helper.copyIntArray(argumentIndices);
  operator.javaStrings = javaStrings == null ? null : Helper.copyStringArray(javaStrings);
  operator.isBindingSupported = isBindingSupported;
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public void copyTo(ExpressionOperator operator){
  operator.selector = selector;
  operator.isPrefix = isPrefix;
  operator.isRepeating = isRepeating;
  operator.nodeClass = nodeClass;
  operator.type = type;
  operator.databaseStrings = databaseStrings == null ? null : Helper.copyStringArray(databaseStrings);
  operator.argumentIndices = argumentIndices == null ? null : Helper.copyIntArray(argumentIndices);
  operator.javaStrings = javaStrings == null ? null : Helper.copyStringArray(javaStrings);
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public void copyTo(ExpressionOperator operator){
  operator.selector = selector;
  operator.isPrefix = isPrefix;
  operator.isRepeating = isRepeating;
  operator.nodeClass = nodeClass;
  operator.type = type;
  operator.databaseStrings = databaseStrings == null ? null : Helper.copyStringArray(databaseStrings);
  operator.argumentIndices = argumentIndices == null ? null : Helper.copyIntArray(argumentIndices);
  operator.javaStrings = javaStrings == null ? null : Helper.copyStringArray(javaStrings);
  operator.isBindingSupported = isBindingSupported;
}

相关文章

Helper类方法