Java tutorial
package com.fasterxml.jackson.databind.node; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.jsontype.TypeSerializer; import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class ArrayNode extends ContainerNode<ArrayNode> { protected List<JsonNode> _children; public ArrayNode(JsonNodeFactory paramJsonNodeFactory) { super(paramJsonNodeFactory); } private ArrayNode _add(JsonNode paramJsonNode) { if (this._children == null) this._children = _createList(); this._children.add(paramJsonNode); return this; } private boolean _sameChildren(List<JsonNode> paramList) { int i = paramList.size(); if (size() != i) return false; for (int j = 0; j < i; j++) if (!((JsonNode) this._children.get(j)).equals(paramList.get(j))) return false; return true; } protected List<JsonNode> _createList() { return new ArrayList(); } public ArrayNode add(JsonNode paramJsonNode) { if (paramJsonNode == null) paramJsonNode = nullNode(); _add(paramJsonNode); return this; } public Iterator<JsonNode> elements() { if (this._children == null) return ContainerNode.NoNodesIterator.instance(); return this._children.iterator(); } public boolean equals(Object paramObject) { if (paramObject == this) ; ArrayNode localArrayNode; do { return true; if (paramObject == null) return false; if (paramObject.getClass() != getClass()) return false; localArrayNode = (ArrayNode) paramObject; if ((this._children != null) && (this._children.size() != 0)) break; } while (localArrayNode.size() == 0); return false; return localArrayNode._sameChildren(this._children); } public JsonNode get(String paramString) { return null; } public int hashCode() { if (this._children == null) { j = 1; return j; } int i = this._children.size(); Iterator localIterator = this._children.iterator(); int j = i; label33: JsonNode localJsonNode; if (localIterator.hasNext()) { localJsonNode = (JsonNode)localIterator.next(); if (localJsonNode == null) break label73; } label73: for (int k = j ^ localJsonNode.hashCode(); ; k = j) { j = k; break label33; break; } } public final void serialize(JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider) { paramJsonGenerator.writeStartArray(); if (this._children != null) { Iterator localIterator = this._children.iterator(); while (localIterator.hasNext()) ((BaseJsonNode) localIterator.next()).serialize(paramJsonGenerator, paramSerializerProvider); } paramJsonGenerator.writeEndArray(); } public void serializeWithType(JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider, TypeSerializer paramTypeSerializer) { paramTypeSerializer.writeTypePrefixForArray(this, paramJsonGenerator); if (this._children != null) { Iterator localIterator = this._children.iterator(); while (localIterator.hasNext()) ((BaseJsonNode) localIterator.next()).serialize(paramJsonGenerator, paramSerializerProvider); } paramTypeSerializer.writeTypeSuffixForArray(this, paramJsonGenerator); } public int size() { if (this._children == null) return 0; return this._children.size(); } public String toString() { StringBuilder localStringBuilder = new StringBuilder(16 + (size() << 4)); localStringBuilder.append('['); if (this._children != null) { int i = this._children.size(); for (int j = 0; j < i; j++) { if (j > 0) localStringBuilder.append(','); localStringBuilder.append(((JsonNode) this._children.get(j)).toString()); } } localStringBuilder.append(']'); return localStringBuilder.toString(); } } /* Location: /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar * Qualified Name: com.fasterxml.jackson.databind.node.ArrayNode * JD-Core Version: 0.6.2 */