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


Java Until类代码示例

本文整理汇总了Java中com.google.gson.annotations.Until的典型用法代码示例。如果您正苦于以下问题:Java Until类的具体用法?Java Until怎么用?Java Until使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: excludeClass

import com.google.gson.annotations.Until; //导入依赖的package包/类
public boolean excludeClass(Class<?> clazz, boolean serialize) {
  if (version != Excluder.IGNORE_VERSIONS
      && !isValidVersion(clazz.getAnnotation(Since.class), clazz.getAnnotation(Until.class))) {
    return true;
  }

  if (!serializeInnerClasses && isInnerClass(clazz)) {
    return true;
  }

  if (isAnonymousOrLocal(clazz)) {
    return true;
  }

  List<ExclusionStrategy> list = serialize ? serializationStrategies : deserializationStrategies;
  for (ExclusionStrategy exclusionStrategy : list) {
    if (exclusionStrategy.shouldSkipClass(clazz)) {
      return true;
    }
  }

  return false;
}
 
开发者ID:appcelerator-archive,项目名称:ti.box,代码行数:24,代码来源:Excluder.java

示例2: excludeClass

import com.google.gson.annotations.Until; //导入依赖的package包/类
public boolean excludeClass(Class<?> clazz, boolean serialize) {
    if (this.version != IGNORE_VERSIONS && !isValidVersion((Since) clazz.getAnnotation(Since.class), (Until) clazz.getAnnotation(Until.class))) {
        return true;
    }
    if (!this.serializeInnerClasses && isInnerClass(clazz)) {
        return true;
    }
    if (isAnonymousOrLocal(clazz)) {
        return true;
    }
    for (ExclusionStrategy exclusionStrategy : serialize ? this.serializationStrategies : this.deserializationStrategies) {
        if (exclusionStrategy.shouldSkipClass(clazz)) {
            return true;
        }
    }
    return false;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:18,代码来源:Excluder.java

示例3: excludeClass

import com.google.gson.annotations.Until; //导入依赖的package包/类
public boolean excludeClass(Class<?> clazz, boolean serialize) {
    if (this.version != IGNORE_VERSIONS && !isValidVersion((Since) clazz.getAnnotation(Since
            .class), (Until) clazz.getAnnotation(Until.class))) {
        return true;
    }
    if (!this.serializeInnerClasses && isInnerClass(clazz)) {
        return true;
    }
    if (isAnonymousOrLocal(clazz)) {
        return true;
    }
    for (ExclusionStrategy exclusionStrategy : serialize ? this.serializationStrategies :
            this.deserializationStrategies) {
        if (exclusionStrategy.shouldSkipClass(clazz)) {
            return true;
        }
    }
    return false;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:20,代码来源:Excluder.java

示例4: excludeClass

import com.google.gson.annotations.Until; //导入依赖的package包/类
public final boolean excludeClass(Class<?> paramClass, boolean paramBoolean)
{
  if ((this.version != -1.0D) && (!isValidVersion((Since)paramClass.getAnnotation(Since.class), (Until)paramClass.getAnnotation(Until.class)))) {
    return true;
  }
  if ((!this.serializeInnerClasses) && (isInnerClass(paramClass))) {
    return true;
  }
  if (isAnonymousOrLocal(paramClass)) {
    return true;
  }
  if (paramBoolean) {}
  for (List localList = this.serializationStrategies;; localList = this.deserializationStrategies)
  {
    Iterator localIterator = localList.iterator();
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
    } while (!((ExclusionStrategy)localIterator.next()).shouldSkipClass$1b2d8b94());
    return true;
  }
  return false;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:26,代码来源:Excluder.java

示例5: isValidVersion

import com.google.gson.annotations.Until; //导入依赖的package包/类
public final boolean isValidVersion(Since paramSince, Until paramUntil)
{
  int i;
  if ((paramSince != null) && (paramSince.value() > this.version))
  {
    i = 0;
    if (i == 0) {
      break label63;
    }
    if ((paramUntil == null) || (paramUntil.value() > this.version)) {
      break label57;
    }
  }
  label57:
  for (int j = 0;; j = 1)
  {
    if (j == 0) {
      break label63;
    }
    return true;
    i = 1;
    break;
  }
  label63:
  return false;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:27,代码来源:Excluder.java

示例6: excludeField

import com.google.gson.annotations.Until; //导入依赖的package包/类
public boolean excludeField(Field field, boolean serialize) {
    if ((this.modifiers & field.getModifiers()) != 0) {
        return true;
    }
    if (this.version != IGNORE_VERSIONS && !isValidVersion((Since) field.getAnnotation(Since.class), (Until) field.getAnnotation(Until.class))) {
        return true;
    }
    if (field.isSynthetic()) {
        return true;
    }
    if (this.requireExpose) {
        Expose annotation = (Expose) field.getAnnotation(Expose.class);
        if (annotation == null || (serialize ? !annotation.serialize() : !annotation.deserialize())) {
            return true;
        }
    }
    if (!this.serializeInnerClasses && isInnerClass(field.getType())) {
        return true;
    }
    if (isAnonymousOrLocal(field.getType())) {
        return true;
    }
    List<ExclusionStrategy> list = serialize ? this.serializationStrategies : this.deserializationStrategies;
    if (!list.isEmpty()) {
        FieldAttributes fieldAttributes = new FieldAttributes(field);
        for (ExclusionStrategy exclusionStrategy : list) {
            if (exclusionStrategy.shouldSkipField(fieldAttributes)) {
                return true;
            }
        }
    }
    return false;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:34,代码来源:Excluder.java

示例7: isValidUntil

import com.google.gson.annotations.Until; //导入依赖的package包/类
private boolean isValidUntil(Until annotation) {
  if (annotation != null) {
    double annotationVersion = annotation.value();
    if (annotationVersion <= version) {
      return false;
    }
  }
  return true;
}
 
开发者ID:odoo-mobile-intern,项目名称:odoo-work,代码行数:10,代码来源:Excluder.java

示例8: excludeField

import com.google.gson.annotations.Until; //导入依赖的package包/类
public boolean excludeField(Field field, boolean serialize) {
    if ((this.modifiers & field.getModifiers()) != 0) {
        return true;
    }
    if (this.version != IGNORE_VERSIONS && !isValidVersion((Since) field.getAnnotation(Since
            .class), (Until) field.getAnnotation(Until.class))) {
        return true;
    }
    if (field.isSynthetic()) {
        return true;
    }
    if (this.requireExpose) {
        Expose annotation = (Expose) field.getAnnotation(Expose.class);
        if (annotation == null || (serialize ? !annotation.serialize() : !annotation
                .deserialize())) {
            return true;
        }
    }
    if (!this.serializeInnerClasses && isInnerClass(field.getType())) {
        return true;
    }
    if (isAnonymousOrLocal(field.getType())) {
        return true;
    }
    List<ExclusionStrategy> list = serialize ? this.serializationStrategies : this
            .deserializationStrategies;
    if (!list.isEmpty()) {
        FieldAttributes fieldAttributes = new FieldAttributes(field);
        for (ExclusionStrategy exclusionStrategy : list) {
            if (exclusionStrategy.shouldSkipField(fieldAttributes)) {
                return true;
            }
        }
    }
    return false;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:37,代码来源:Excluder.java

示例9: excludeClass

import com.google.gson.annotations.Until; //导入依赖的package包/类
public boolean excludeClass(Class class1, boolean flag)
{
    if (b != -1D && !a((Since)class1.getAnnotation(com/google/gson/annotations/Since), (Until)class1.getAnnotation(com/google/gson/annotations/Until)))
    {
        return true;
    }
    if (!d && b(class1))
    {
        return true;
    }
    if (a(class1))
    {
        return true;
    }
    List list;
    Iterator iterator;
    if (flag)
    {
        list = f;
    } else
    {
        list = g;
    }
    for (iterator = list.iterator(); iterator.hasNext();)
    {
        if (((ExclusionStrategy)iterator.next()).shouldSkipClass(class1))
        {
            return true;
        }
    }

    return false;
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:34,代码来源:Excluder.java


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