本文整理了Java中org.babyfish.collection.XOrderedMap.lastEntry()
方法的一些代码示例,展示了XOrderedMap.lastEntry()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XOrderedMap.lastEntry()
方法的具体详情如下:
包路径:org.babyfish.collection.XOrderedMap
类名称:XOrderedMap
方法名:lastEntry
暂无
代码示例来源:origin: babyfish-ct/babyfish
@Override
protected XEntry<K, V> createBaseView(
XOrderedMap<K, V> baseMap, ViewInfo viewInfo) {
if (viewInfo instanceof OrderedMapViewInfos.LastEntry) {
return baseMap.lastEntry();
}
throw new IllegalArgumentException(CommonMessages.illegalViewInfo());
}
}
代码示例来源:origin: babyfish-ct/babyfish
@Override
protected XEntry<K, V> createBaseView(
XOrderedMap<K, V> baseMap, ViewInfo viewInfo) {
if (viewInfo instanceof OrderedMapViewInfos.LastEntry) {
return baseMap.lastEntry();
}
throw new IllegalArgumentException(CommonMessages.illegalViewInfo());
}
代码示例来源:origin: babyfish-ct/babyfish
private boolean isVisibleClass0(Class<?> clazz, boolean isLeafClass) {
if (clazz.isArray()) {
return isVisibleClass0(clazz.getComponentType(), isLeafClass);
}
int modifiers = clazz.getModifiers();
Class<?> declaringClass = clazz.getDeclaringClass();
if (!Modifier.isPublic(modifiers)) {
if (Modifier.isPrivate(modifiers) && ClassEnhancer.this.usedEnhancerLoader()) {
return false;
}
//For JVM(not java), private type under the same package and same class loader are visible
if (this.targetPackage != clazz.getPackage()) {
if (!Modifier.isProtected(modifiers)) {
return false;
}
if (!isLeafClass) {
return false;
}
if (declaringClass == null ||
!clazz
.getDeclaringClass()
.isAssignableFrom(this.classEntries.lastEntry()
.getValue().clazz)) {
return false;
}
}
}
return declaringClass != null ? isVisibleClass0(declaringClass, false) : true;
}
代码示例来源:origin: babyfish-ct/babyfish
ClassEntry lastEntry = this.classEntries.lastEntry().getValue();
ClassNode newClassNode = new ClassNode();
newClassNode.version = Opcodes.V1_7;
newClassEntry.superClassEntry = this.classEntries.lastEntry().getValue();
this.newClassEntry = newClassEntry;
this.classEntries.put(newClassNode.name, newClassEntry);
内容来源于网络,如有侵权,请联系作者删除!