Java 类org.codehaus.jackson.map.util.ArrayBuilders 实例源码

项目:12306-android-Decompile    文件:BeanSerializerFactory.java   
protected List<BeanPropertyWriter> filterBeanProperties(SerializationConfig paramSerializationConfig, BasicBeanDescription paramBasicBeanDescription, List<BeanPropertyWriter> paramList)
{
  String[] arrayOfString = paramSerializationConfig.getAnnotationIntrospector().findPropertiesToIgnore(paramBasicBeanDescription.getClassInfo());
  if ((arrayOfString != null) && (arrayOfString.length > 0))
  {
    HashSet localHashSet = ArrayBuilders.arrayToSet(arrayOfString);
    Iterator localIterator = paramList.iterator();
    while (localIterator.hasNext())
    {
      if (!localHashSet.contains(((BeanPropertyWriter)localIterator.next()).getName()))
        continue;
      localIterator.remove();
    }
  }
  return paramList;
}
项目:12306-android-Decompile    文件:AnnotatedClass.java   
public void resolveFields(boolean paramBoolean)
{
  LinkedHashMap localLinkedHashMap = new LinkedHashMap();
  _addFields(localLinkedHashMap, this._class);
  if (this._annotationIntrospector != null)
  {
    Iterator localIterator = localLinkedHashMap.entrySet().iterator();
    while (localIterator.hasNext())
    {
      AnnotatedField localAnnotatedField = (AnnotatedField)((Map.Entry)localIterator.next()).getValue();
      if (!this._annotationIntrospector.isIgnorableField(localAnnotatedField))
        continue;
      localIterator.remove();
      if (!paramBoolean)
        continue;
      this._ignoredFields = ArrayBuilders.addToList(this._ignoredFields, localAnnotatedField);
    }
  }
  if (localLinkedHashMap.isEmpty())
  {
    this._fields = Collections.emptyList();
    return;
  }
  this._fields = new ArrayList(localLinkedHashMap.size());
  this._fields.addAll(localLinkedHashMap.values());
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public boolean[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.BooleanBuilder localBooleanBuilder = paramDeserializationContext.getArrayBuilders().getBooleanBuilder();
  boolean[] arrayOfBoolean = (boolean[])localBooleanBuilder.resetAndStart();
  int j;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = j)
  {
    boolean bool = _parseBooleanPrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfBoolean.length)
    {
      arrayOfBoolean = (boolean[])localBooleanBuilder.appendCompletedChunk(arrayOfBoolean, i);
      i = 0;
    }
    j = i + 1;
    arrayOfBoolean[i] = bool;
  }
  return (boolean[])localBooleanBuilder.completeAndClearBuffer(arrayOfBoolean, i);
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public double[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.DoubleBuilder localDoubleBuilder = paramDeserializationContext.getArrayBuilders().getDoubleBuilder();
  double[] arrayOfDouble = (double[])localDoubleBuilder.resetAndStart();
  int j;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = j)
  {
    double d = _parseDoublePrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfDouble.length)
    {
      arrayOfDouble = (double[])localDoubleBuilder.appendCompletedChunk(arrayOfDouble, i);
      i = 0;
    }
    j = i + 1;
    arrayOfDouble[i] = d;
  }
  return (double[])localDoubleBuilder.completeAndClearBuffer(arrayOfDouble, i);
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public float[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.FloatBuilder localFloatBuilder = paramDeserializationContext.getArrayBuilders().getFloatBuilder();
  float[] arrayOfFloat = (float[])localFloatBuilder.resetAndStart();
  int j;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = j)
  {
    float f = _parseFloatPrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfFloat.length)
    {
      arrayOfFloat = (float[])localFloatBuilder.appendCompletedChunk(arrayOfFloat, i);
      i = 0;
    }
    j = i + 1;
    arrayOfFloat[i] = f;
  }
  return (float[])localFloatBuilder.completeAndClearBuffer(arrayOfFloat, i);
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public int[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.IntBuilder localIntBuilder = paramDeserializationContext.getArrayBuilders().getIntBuilder();
  int[] arrayOfInt = (int[])localIntBuilder.resetAndStart();
  int k;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = k)
  {
    int j = _parseIntPrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfInt.length)
    {
      arrayOfInt = (int[])localIntBuilder.appendCompletedChunk(arrayOfInt, i);
      i = 0;
    }
    k = i + 1;
    arrayOfInt[i] = j;
  }
  return (int[])localIntBuilder.completeAndClearBuffer(arrayOfInt, i);
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public long[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.LongBuilder localLongBuilder = paramDeserializationContext.getArrayBuilders().getLongBuilder();
  long[] arrayOfLong = (long[])localLongBuilder.resetAndStart();
  int j;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = j)
  {
    long l = _parseLongPrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfLong.length)
    {
      arrayOfLong = (long[])localLongBuilder.appendCompletedChunk(arrayOfLong, i);
      i = 0;
    }
    j = i + 1;
    arrayOfLong[i] = l;
  }
  return (long[])localLongBuilder.completeAndClearBuffer(arrayOfLong, i);
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public short[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.ShortBuilder localShortBuilder = paramDeserializationContext.getArrayBuilders().getShortBuilder();
  short[] arrayOfShort = (short[])localShortBuilder.resetAndStart();
  int k;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = k)
  {
    int j = _parseShortPrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfShort.length)
    {
      arrayOfShort = (short[])localShortBuilder.appendCompletedChunk(arrayOfShort, i);
      i = 0;
    }
    k = i + 1;
    arrayOfShort[i] = j;
  }
  return (short[])localShortBuilder.completeAndClearBuffer(arrayOfShort, i);
}
项目:RHome    文件:BeanSerializerFactory.java   
/**
 * Overridable method that can filter out properties. Default implementation
 * checks annotations class may have.
 */
protected List<BeanPropertyWriter> filterBeanProperties(SerializationConfig config, BasicBeanDescription beanDesc, List<BeanPropertyWriter> props)
{
    AnnotationIntrospector intr = config.getAnnotationIntrospector();
    AnnotatedClass ac = beanDesc.getClassInfo();
    String[] ignored = intr.findPropertiesToIgnore(ac);
    if (ignored != null && ignored.length > 0) {
        HashSet<String> ignoredSet = ArrayBuilders.arrayToSet(ignored);
        Iterator<BeanPropertyWriter> it = props.iterator();
        while (it.hasNext()) {
            if (ignoredSet.contains(it.next().getName())) {
                it.remove();
            }
        }
    }
    return props;
}
项目:RHome    文件:ArrayDeserializers.java   
public boolean[] deserialize(JsonParser jp, DeserializationContext ctxt)
    throws IOException, JsonProcessingException
{
    if (jp.getCurrentToken() != JsonToken.START_ARRAY) {
        throw ctxt.mappingException(_valueClass);
    }
    ArrayBuilders.BooleanBuilder builder = ctxt.getArrayBuilders().getBooleanBuilder();
    boolean[] chunk = builder.resetAndStart();
    int ix = 0;

    while (jp.nextToken() != JsonToken.END_ARRAY) {
        // whether we should allow truncating conversions?
        boolean value = _parseBoolean(jp, ctxt);
        if (ix >= chunk.length) {
            chunk = builder.appendCompletedChunk(chunk, ix);
            ix = 0;
        }
        chunk[ix++] = value;
    }
    return builder.completeAndClearBuffer(chunk, ix);
}
项目:RHome    文件:ArrayDeserializers.java   
public short[] deserialize(JsonParser jp, DeserializationContext ctxt)
    throws IOException, JsonProcessingException
{
    if (jp.getCurrentToken() != JsonToken.START_ARRAY) {
        throw ctxt.mappingException(_valueClass);
    }
    ArrayBuilders.ShortBuilder builder = ctxt.getArrayBuilders().getShortBuilder();
    short[] chunk = builder.resetAndStart();
    int ix = 0;

    while (jp.nextToken() != JsonToken.END_ARRAY) {
        short value = _parseShort(jp, ctxt);
        if (ix >= chunk.length) {
            chunk = builder.appendCompletedChunk(chunk, ix);
            ix = 0;
        }
        chunk[ix++] = value;
    }
    return builder.completeAndClearBuffer(chunk, ix);
}
项目:RHome    文件:ArrayDeserializers.java   
public int[] deserialize(JsonParser jp, DeserializationContext ctxt)
    throws IOException, JsonProcessingException
{
    if (jp.getCurrentToken() != JsonToken.START_ARRAY) {
        throw ctxt.mappingException(_valueClass);
    }
    ArrayBuilders.IntBuilder builder = ctxt.getArrayBuilders().getIntBuilder();
    int[] chunk = builder.resetAndStart();
    int ix = 0;

    while (jp.nextToken() != JsonToken.END_ARRAY) {
        // whether we should allow truncating conversions?
        int value = _parseInt(jp, ctxt);
        if (ix >= chunk.length) {
            chunk = builder.appendCompletedChunk(chunk, ix);
            ix = 0;
        }
        chunk[ix++] = value;
    }
    return builder.completeAndClearBuffer(chunk, ix);
}
项目:RHome    文件:ArrayDeserializers.java   
public long[] deserialize(JsonParser jp, DeserializationContext ctxt)
    throws IOException, JsonProcessingException
{
    if (jp.getCurrentToken() != JsonToken.START_ARRAY) {
        throw ctxt.mappingException(_valueClass);
    }
    ArrayBuilders.LongBuilder builder = ctxt.getArrayBuilders().getLongBuilder();
    long[] chunk = builder.resetAndStart();
    int ix = 0;

    while (jp.nextToken() != JsonToken.END_ARRAY) {
        long value = _parseLong(jp, ctxt);
        if (ix >= chunk.length) {
            chunk = builder.appendCompletedChunk(chunk, ix);
            ix = 0;
        }
        chunk[ix++] = value;
    }
    return builder.completeAndClearBuffer(chunk, ix);
}
项目:RHome    文件:ArrayDeserializers.java   
public float[] deserialize(JsonParser jp, DeserializationContext ctxt)
    throws IOException, JsonProcessingException
{
    if (jp.getCurrentToken() != JsonToken.START_ARRAY) {
        throw ctxt.mappingException(_valueClass);
    }
    ArrayBuilders.FloatBuilder builder = ctxt.getArrayBuilders().getFloatBuilder();
    float[] chunk = builder.resetAndStart();
    int ix = 0;

    while (jp.nextToken() != JsonToken.END_ARRAY) {
        // whether we should allow truncating conversions?
        float value = _parseFloat(jp, ctxt);
        if (ix >= chunk.length) {
            chunk = builder.appendCompletedChunk(chunk, ix);
            ix = 0;
        }
        chunk[ix++] = value;
    }
    return builder.completeAndClearBuffer(chunk, ix);
}
项目:RHome    文件:ArrayDeserializers.java   
public double[] deserialize(JsonParser jp, DeserializationContext ctxt)
    throws IOException, JsonProcessingException
{
    if (jp.getCurrentToken() != JsonToken.START_ARRAY) {
        throw ctxt.mappingException(_valueClass);
    }
    ArrayBuilders.DoubleBuilder builder = ctxt.getArrayBuilders().getDoubleBuilder();
    double[] chunk = builder.resetAndStart();
    int ix = 0;

    while (jp.nextToken() != JsonToken.END_ARRAY) {
        double value = _parseDouble(jp, ctxt);
        if (ix >= chunk.length) {
            chunk = builder.appendCompletedChunk(chunk, ix);
            ix = 0;
        }
        chunk[ix++] = value;
    }
    return builder.completeAndClearBuffer(chunk, ix);
}
项目:12306-android-Decompile    文件:BeanSerializerFactory.java   
protected List<BeanPropertyWriter> filterBeanProperties(SerializationConfig paramSerializationConfig, BasicBeanDescription paramBasicBeanDescription, List<BeanPropertyWriter> paramList)
{
  String[] arrayOfString = paramSerializationConfig.getAnnotationIntrospector().findPropertiesToIgnore(paramBasicBeanDescription.getClassInfo());
  if ((arrayOfString != null) && (arrayOfString.length > 0))
  {
    HashSet localHashSet = ArrayBuilders.arrayToSet(arrayOfString);
    Iterator localIterator = paramList.iterator();
    while (localIterator.hasNext())
    {
      if (!localHashSet.contains(((BeanPropertyWriter)localIterator.next()).getName()))
        continue;
      localIterator.remove();
    }
  }
  return paramList;
}
项目:12306-android-Decompile    文件:AnnotatedClass.java   
public void resolveFields(boolean paramBoolean)
{
  LinkedHashMap localLinkedHashMap = new LinkedHashMap();
  _addFields(localLinkedHashMap, this._class);
  if (this._annotationIntrospector != null)
  {
    Iterator localIterator = localLinkedHashMap.entrySet().iterator();
    while (localIterator.hasNext())
    {
      AnnotatedField localAnnotatedField = (AnnotatedField)((Map.Entry)localIterator.next()).getValue();
      if (!this._annotationIntrospector.isIgnorableField(localAnnotatedField))
        continue;
      localIterator.remove();
      if (!paramBoolean)
        continue;
      this._ignoredFields = ArrayBuilders.addToList(this._ignoredFields, localAnnotatedField);
    }
  }
  if (localLinkedHashMap.isEmpty())
  {
    this._fields = Collections.emptyList();
    return;
  }
  this._fields = new ArrayList(localLinkedHashMap.size());
  this._fields.addAll(localLinkedHashMap.values());
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public boolean[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.BooleanBuilder localBooleanBuilder = paramDeserializationContext.getArrayBuilders().getBooleanBuilder();
  boolean[] arrayOfBoolean = (boolean[])localBooleanBuilder.resetAndStart();
  int j;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = j)
  {
    boolean bool = _parseBooleanPrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfBoolean.length)
    {
      arrayOfBoolean = (boolean[])localBooleanBuilder.appendCompletedChunk(arrayOfBoolean, i);
      i = 0;
    }
    j = i + 1;
    arrayOfBoolean[i] = bool;
  }
  return (boolean[])localBooleanBuilder.completeAndClearBuffer(arrayOfBoolean, i);
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public double[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.DoubleBuilder localDoubleBuilder = paramDeserializationContext.getArrayBuilders().getDoubleBuilder();
  double[] arrayOfDouble = (double[])localDoubleBuilder.resetAndStart();
  int j;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = j)
  {
    double d = _parseDoublePrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfDouble.length)
    {
      arrayOfDouble = (double[])localDoubleBuilder.appendCompletedChunk(arrayOfDouble, i);
      i = 0;
    }
    j = i + 1;
    arrayOfDouble[i] = d;
  }
  return (double[])localDoubleBuilder.completeAndClearBuffer(arrayOfDouble, i);
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public float[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.FloatBuilder localFloatBuilder = paramDeserializationContext.getArrayBuilders().getFloatBuilder();
  float[] arrayOfFloat = (float[])localFloatBuilder.resetAndStart();
  int j;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = j)
  {
    float f = _parseFloatPrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfFloat.length)
    {
      arrayOfFloat = (float[])localFloatBuilder.appendCompletedChunk(arrayOfFloat, i);
      i = 0;
    }
    j = i + 1;
    arrayOfFloat[i] = f;
  }
  return (float[])localFloatBuilder.completeAndClearBuffer(arrayOfFloat, i);
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public int[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.IntBuilder localIntBuilder = paramDeserializationContext.getArrayBuilders().getIntBuilder();
  int[] arrayOfInt = (int[])localIntBuilder.resetAndStart();
  int k;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = k)
  {
    int j = _parseIntPrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfInt.length)
    {
      arrayOfInt = (int[])localIntBuilder.appendCompletedChunk(arrayOfInt, i);
      i = 0;
    }
    k = i + 1;
    arrayOfInt[i] = j;
  }
  return (int[])localIntBuilder.completeAndClearBuffer(arrayOfInt, i);
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public long[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.LongBuilder localLongBuilder = paramDeserializationContext.getArrayBuilders().getLongBuilder();
  long[] arrayOfLong = (long[])localLongBuilder.resetAndStart();
  int j;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = j)
  {
    long l = _parseLongPrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfLong.length)
    {
      arrayOfLong = (long[])localLongBuilder.appendCompletedChunk(arrayOfLong, i);
      i = 0;
    }
    j = i + 1;
    arrayOfLong[i] = l;
  }
  return (long[])localLongBuilder.completeAndClearBuffer(arrayOfLong, i);
}
项目:12306-android-Decompile    文件:ArrayDeserializers.java   
public short[] deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
  throws IOException, JsonProcessingException
{
  if (!paramJsonParser.isExpectedStartArrayToken())
    return handleNonArray(paramJsonParser, paramDeserializationContext);
  ArrayBuilders.ShortBuilder localShortBuilder = paramDeserializationContext.getArrayBuilders().getShortBuilder();
  short[] arrayOfShort = (short[])localShortBuilder.resetAndStart();
  int k;
  for (int i = 0; paramJsonParser.nextToken() != JsonToken.END_ARRAY; i = k)
  {
    int j = _parseShortPrimitive(paramJsonParser, paramDeserializationContext);
    if (i >= arrayOfShort.length)
    {
      arrayOfShort = (short[])localShortBuilder.appendCompletedChunk(arrayOfShort, i);
      i = 0;
    }
    k = i + 1;
    arrayOfShort[i] = j;
  }
  return (short[])localShortBuilder.completeAndClearBuffer(arrayOfShort, i);
}
项目:12306-android-Decompile    文件:BeanSerializerFactory.java   
public SerializerFactory.Config withAdditionalKeySerializers(Serializers paramSerializers)
{
  if (paramSerializers == null)
    throw new IllegalArgumentException("Can not pass null Serializers");
  Serializers[] arrayOfSerializers = (Serializers[])ArrayBuilders.insertInListNoDup(this._additionalKeySerializers, paramSerializers);
  return new ConfigImpl(this._additionalSerializers, arrayOfSerializers, this._modifiers);
}
项目:12306-android-Decompile    文件:BeanSerializerFactory.java   
public SerializerFactory.Config withSerializerModifier(BeanSerializerModifier paramBeanSerializerModifier)
{
  if (paramBeanSerializerModifier == null)
    throw new IllegalArgumentException("Can not pass null modifier");
  BeanSerializerModifier[] arrayOfBeanSerializerModifier = (BeanSerializerModifier[])ArrayBuilders.insertInListNoDup(this._modifiers, paramBeanSerializerModifier);
  return new ConfigImpl(this._additionalSerializers, this._additionalKeySerializers, arrayOfBeanSerializerModifier);
}
项目:12306-android-Decompile    文件:MapDeserializer.java   
public void setIgnorableProperties(String[] paramArrayOfString)
{
  if ((paramArrayOfString == null) || (paramArrayOfString.length == 0));
  for (HashSet localHashSet = null; ; localHashSet = ArrayBuilders.arrayToSet(paramArrayOfString))
  {
    this._ignorableProperties = localHashSet;
    return;
  }
}
项目:12306-android-Decompile    文件:BeanDeserializerFactory.java   
public DeserializerFactory.Config withAbstractTypeResolver(AbstractTypeResolver paramAbstractTypeResolver)
{
  if (paramAbstractTypeResolver == null)
    throw new IllegalArgumentException("Can not pass null resolver");
  AbstractTypeResolver[] arrayOfAbstractTypeResolver = (AbstractTypeResolver[])ArrayBuilders.insertInListNoDup(this._abstractTypeResolvers, paramAbstractTypeResolver);
  return new ConfigImpl(this._additionalDeserializers, this._additionalKeyDeserializers, this._modifiers, arrayOfAbstractTypeResolver);
}
项目:12306-android-Decompile    文件:BeanDeserializerFactory.java   
public DeserializerFactory.Config withAdditionalKeyDeserializers(KeyDeserializers paramKeyDeserializers)
{
  if (paramKeyDeserializers == null)
    throw new IllegalArgumentException("Can not pass null KeyDeserializers");
  KeyDeserializers[] arrayOfKeyDeserializers = (KeyDeserializers[])ArrayBuilders.insertInListNoDup(this._additionalKeyDeserializers, paramKeyDeserializers);
  return new ConfigImpl(this._additionalDeserializers, arrayOfKeyDeserializers, this._modifiers, this._abstractTypeResolvers);
}
项目:12306-android-Decompile    文件:BeanDeserializerFactory.java   
public DeserializerFactory.Config withDeserializerModifier(BeanDeserializerModifier paramBeanDeserializerModifier)
{
  if (paramBeanDeserializerModifier == null)
    throw new IllegalArgumentException("Can not pass null modifier");
  BeanDeserializerModifier[] arrayOfBeanDeserializerModifier = (BeanDeserializerModifier[])ArrayBuilders.insertInListNoDup(this._modifiers, paramBeanDeserializerModifier);
  return new ConfigImpl(this._additionalDeserializers, this._additionalKeyDeserializers, arrayOfBeanDeserializerModifier, this._abstractTypeResolvers);
}
项目:RHome    文件:AnnotatedClass.java   
/**
 * Method that will collect all member (non-static) fields
 * that are either public, or have at least a single annotation
 * associated with them.
 *
 * @param collectIgnored Whether to collect list of ignored methods for later retrieval
 */
public void resolveFields(boolean collectIgnored)
{
    LinkedHashMap<String,AnnotatedField> foundFields = new LinkedHashMap<String,AnnotatedField>();
    _addFields(foundFields, _class);

    /* And last but not least: let's remove all fields that are
     * deemed to be ignorable after all annotations have been
     * properly collapsed.
     */
    Iterator<Map.Entry<String,AnnotatedField>> it = foundFields.entrySet().iterator();
    while (it.hasNext()) {
        AnnotatedField f = it.next().getValue();
        if (_annotationIntrospector.isIgnorableField(f)) {
            it.remove();
            if (collectIgnored) {
                _ignoredFields = ArrayBuilders.addToList(_ignoredFields, f);
            }
        } else {

        }
    }
    if (foundFields.isEmpty()) {
        _fields = Collections.emptyList();
    } else {
        _fields = new ArrayList<AnnotatedField>(foundFields.size());
        _fields.addAll(foundFields.values());
    }
}
项目:12306-android-Decompile    文件:BeanSerializerFactory.java   
public SerializerFactory.Config withAdditionalKeySerializers(Serializers paramSerializers)
{
  if (paramSerializers == null)
    throw new IllegalArgumentException("Can not pass null Serializers");
  Serializers[] arrayOfSerializers = (Serializers[])ArrayBuilders.insertInListNoDup(this._additionalKeySerializers, paramSerializers);
  return new ConfigImpl(this._additionalSerializers, arrayOfSerializers, this._modifiers);
}
项目:12306-android-Decompile    文件:BeanSerializerFactory.java   
public SerializerFactory.Config withSerializerModifier(BeanSerializerModifier paramBeanSerializerModifier)
{
  if (paramBeanSerializerModifier == null)
    throw new IllegalArgumentException("Can not pass null modifier");
  BeanSerializerModifier[] arrayOfBeanSerializerModifier = (BeanSerializerModifier[])ArrayBuilders.insertInListNoDup(this._modifiers, paramBeanSerializerModifier);
  return new ConfigImpl(this._additionalSerializers, this._additionalKeySerializers, arrayOfBeanSerializerModifier);
}
项目:12306-android-Decompile    文件:MapDeserializer.java   
public void setIgnorableProperties(String[] paramArrayOfString)
{
  if ((paramArrayOfString == null) || (paramArrayOfString.length == 0));
  for (HashSet localHashSet = null; ; localHashSet = ArrayBuilders.arrayToSet(paramArrayOfString))
  {
    this._ignorableProperties = localHashSet;
    return;
  }
}
项目:12306-android-Decompile    文件:BeanDeserializerFactory.java   
public DeserializerFactory.Config withAbstractTypeResolver(AbstractTypeResolver paramAbstractTypeResolver)
{
  if (paramAbstractTypeResolver == null)
    throw new IllegalArgumentException("Can not pass null resolver");
  AbstractTypeResolver[] arrayOfAbstractTypeResolver = (AbstractTypeResolver[])ArrayBuilders.insertInListNoDup(this._abstractTypeResolvers, paramAbstractTypeResolver);
  return new ConfigImpl(this._additionalDeserializers, this._additionalKeyDeserializers, this._modifiers, arrayOfAbstractTypeResolver);
}
项目:12306-android-Decompile    文件:BeanDeserializerFactory.java   
public DeserializerFactory.Config withAdditionalKeyDeserializers(KeyDeserializers paramKeyDeserializers)
{
  if (paramKeyDeserializers == null)
    throw new IllegalArgumentException("Can not pass null KeyDeserializers");
  KeyDeserializers[] arrayOfKeyDeserializers = (KeyDeserializers[])ArrayBuilders.insertInListNoDup(this._additionalKeyDeserializers, paramKeyDeserializers);
  return new ConfigImpl(this._additionalDeserializers, arrayOfKeyDeserializers, this._modifiers, this._abstractTypeResolvers);
}
项目:12306-android-Decompile    文件:BeanDeserializerFactory.java   
public DeserializerFactory.Config withDeserializerModifier(BeanDeserializerModifier paramBeanDeserializerModifier)
{
  if (paramBeanDeserializerModifier == null)
    throw new IllegalArgumentException("Can not pass null modifier");
  BeanDeserializerModifier[] arrayOfBeanDeserializerModifier = (BeanDeserializerModifier[])ArrayBuilders.insertInListNoDup(this._modifiers, paramBeanDeserializerModifier);
  return new ConfigImpl(this._additionalDeserializers, this._additionalKeyDeserializers, arrayOfBeanDeserializerModifier, this._abstractTypeResolvers);
}
项目:ingress-indonesia-dev    文件:BeanSerializerFactory.java   
protected List<BeanPropertyWriter> filterBeanProperties(SerializationConfig paramSerializationConfig, BasicBeanDescription paramBasicBeanDescription, List<BeanPropertyWriter> paramList)
{
  String[] arrayOfString = paramSerializationConfig.getAnnotationIntrospector().findPropertiesToIgnore(paramBasicBeanDescription.getClassInfo());
  if ((arrayOfString != null) && (arrayOfString.length > 0))
  {
    HashSet localHashSet = ArrayBuilders.arrayToSet(arrayOfString);
    Iterator localIterator = paramList.iterator();
    while (localIterator.hasNext())
      if (localHashSet.contains(((BeanPropertyWriter)localIterator.next()).getName()))
        localIterator.remove();
  }
  return paramList;
}
项目:ingress-indonesia-dev    文件:BeanSerializerFactory$ConfigImpl.java   
public SerializerFactory.Config withAdditionalKeySerializers(Serializers paramSerializers)
{
  if (paramSerializers == null)
    throw new IllegalArgumentException("Can not pass null Serializers");
  Serializers[] arrayOfSerializers = (Serializers[])ArrayBuilders.insertInListNoDup(this._additionalKeySerializers, paramSerializers);
  return new ConfigImpl(this._additionalSerializers, arrayOfSerializers, this._modifiers);
}
项目:ingress-indonesia-dev    文件:BeanDeserializerFactory$ConfigImpl.java   
public DeserializerFactory.Config withAbstractTypeResolver(AbstractTypeResolver paramAbstractTypeResolver)
{
  if (paramAbstractTypeResolver == null)
    throw new IllegalArgumentException("Can not pass null resolver");
  AbstractTypeResolver[] arrayOfAbstractTypeResolver = (AbstractTypeResolver[])ArrayBuilders.insertInListNoDup(this._abstractTypeResolvers, paramAbstractTypeResolver);
  return new ConfigImpl(this._additionalDeserializers, this._additionalKeyDeserializers, this._modifiers, arrayOfAbstractTypeResolver, this._valueInstantiators);
}
项目:ingress-indonesia-dev    文件:BeanDeserializerFactory$ConfigImpl.java   
public DeserializerFactory.Config withAdditionalKeyDeserializers(KeyDeserializers paramKeyDeserializers)
{
  if (paramKeyDeserializers == null)
    throw new IllegalArgumentException("Can not pass null KeyDeserializers");
  KeyDeserializers[] arrayOfKeyDeserializers = (KeyDeserializers[])ArrayBuilders.insertInListNoDup(this._additionalKeyDeserializers, paramKeyDeserializers);
  return new ConfigImpl(this._additionalDeserializers, arrayOfKeyDeserializers, this._modifiers, this._abstractTypeResolvers, this._valueInstantiators);
}