本文整理汇总了Java中com.google.zxing.pdf417.PDF417Common.toIntArray方法的典型用法代码示例。如果您正苦于以下问题:Java PDF417Common.toIntArray方法的具体用法?Java PDF417Common.toIntArray怎么用?Java PDF417Common.toIntArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.zxing.pdf417.PDF417Common
的用法示例。
在下文中一共展示了PDF417Common.toIntArray方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getValue
import com.google.zxing.pdf417.PDF417Common; //导入方法依赖的package包/类
/**
* Determines the maximum occurrence of a set value and returns all values which were set with this occurrence.
* @return an array of int, containing the values with the highest occurrence, or null, if no value was set
*/
int[] getValue() {
int maxConfidence = -1;
Collection<Integer> result = new ArrayList<>();
for (Entry<Integer,Integer> entry : values.entrySet()) {
if (entry.getValue() > maxConfidence) {
maxConfidence = entry.getValue();
result.clear();
result.add(entry.getKey());
} else if (entry.getValue() == maxConfidence) {
result.add(entry.getKey());
}
}
return PDF417Common.toIntArray(result);
}
示例2: getValue
import com.google.zxing.pdf417.PDF417Common; //导入方法依赖的package包/类
int[] getValue() {
int maxConfidence = -1;
Collection<Integer> result = new ArrayList();
for (Entry<Integer, Integer> entry : this.values.entrySet()) {
if (((Integer) entry.getValue()).intValue() > maxConfidence) {
maxConfidence = ((Integer) entry.getValue()).intValue();
result.clear();
result.add(entry.getKey());
} else if (((Integer) entry.getValue()).intValue() == maxConfidence) {
result.add(entry.getKey());
}
}
return PDF417Common.toIntArray(result);
}
示例3: getValue
import com.google.zxing.pdf417.PDF417Common; //导入方法依赖的package包/类
/**
* Determines the maximum occurrence of a set value and returns all values which were set with this occurrence.
*
* @return an array of int, containing the values with the highest occurrence, or null, if no value was set
*/
int[] getValue() {
int maxConfidence = -1;
Collection<Integer> result = new ArrayList<>();
for (Entry<Integer, Integer> entry : values.entrySet()) {
if (entry.getValue() > maxConfidence) {
maxConfidence = entry.getValue();
result.clear();
result.add(entry.getKey());
} else if (entry.getValue() == maxConfidence) {
result.add(entry.getKey());
}
}
return PDF417Common.toIntArray(result);
}
示例4: getValue
import com.google.zxing.pdf417.PDF417Common; //导入方法依赖的package包/类
/**
* Determines the maximum occurrence of a set value and returns all values which were set with this occurrence.
*
* @return an array of int, containing the values with the highest occurrence, or null, if no value was set
*/
int[] getValue() {
int maxConfidence = -1;
Collection<Integer> result = new ArrayList<Integer>();
for (Entry<Integer, Integer> entry : values.entrySet()) {
if (entry.getValue() > maxConfidence) {
maxConfidence = entry.getValue();
result.clear();
result.add(entry.getKey());
} else if (entry.getValue() == maxConfidence) {
result.add(entry.getKey());
}
}
return PDF417Common.toIntArray(result);
}
示例5: getValue
import com.google.zxing.pdf417.PDF417Common; //导入方法依赖的package包/类
/**
* Determines the maximum occurrence of a set value and returns all values which were set with this occurrence.
* @return an array of int, containing the values with the highest occurrence, or null, if no value was set
*/
int[] getValue() {
int maxConfidence = -1;
Collection<Integer> result = new ArrayList<Integer>();
for (Entry<Integer,Integer> entry : values.entrySet()) {
if (entry.getValue() > maxConfidence) {
maxConfidence = entry.getValue();
result.clear();
result.add(entry.getKey());
} else if (entry.getValue() == maxConfidence) {
result.add(entry.getKey());
}
}
return PDF417Common.toIntArray(result);
}