Java Code Examples for com.sun.org.apache.xerces.internal.xs.ShortList#item()

The following examples show how to use com.sun.org.apache.xerces.internal.xs.ShortList#item() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShortListImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ShortList)) {
        return false;
    }
    ShortList rhs = (ShortList)obj;

    if (fLength != rhs.getLength()) {
        return false;
    }
    for (int i = 0;i < fLength; ++i) {
        if (fArray[i] != rhs.item(i)) {
            return false;
        }
    }
    return true;
}
 
Example 2
Source File: Field.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
private ShortList convertToPrimitiveKind(ShortList itemValueType) {
    if (itemValueType != null) {
        int i;
        final int length = itemValueType.getLength();
        for (i = 0; i < length; ++i) {
            short type = itemValueType.item(i);
            if (type != convertToPrimitiveKind(type)) {
                break;
            }
        }
        if (i != length) {
            final short [] arr = new short[length];
            for (int j = 0; j < i; ++j) {
                arr[j] = itemValueType.item(j);
            }
            for(; i < length; ++i) {
                arr[i] = convertToPrimitiveKind(itemValueType.item(i));
            }
            return new ShortListImpl(arr, arr.length);
        }
    }
    return itemValueType;
}
 
Example 3
Source File: ShortListImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ShortList)) {
        return false;
    }
    ShortList rhs = (ShortList)obj;

    if (fLength != rhs.getLength()) {
        return false;
    }
    for (int i = 0;i < fLength; ++i) {
        if (fArray[i] != rhs.item(i)) {
            return false;
        }
    }
    return true;
}
 
Example 4
Source File: Field.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private ShortList convertToPrimitiveKind(ShortList itemValueType) {
    if (itemValueType != null) {
        int i;
        final int length = itemValueType.getLength();
        for (i = 0; i < length; ++i) {
            short type = itemValueType.item(i);
            if (type != convertToPrimitiveKind(type)) {
                break;
            }
        }
        if (i != length) {
            final short [] arr = new short[length];
            for (int j = 0; j < i; ++j) {
                arr[j] = itemValueType.item(j);
            }
            for(; i < length; ++i) {
                arr[i] = convertToPrimitiveKind(itemValueType.item(i));
            }
            return new ShortListImpl(arr, arr.length);
        }
    }
    return itemValueType;
}
 
Example 5
Source File: ShortListImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ShortList)) {
        return false;
    }
    ShortList rhs = (ShortList)obj;

    if (fLength != rhs.getLength()) {
        return false;
    }
    for (int i = 0;i < fLength; ++i) {
        if (fArray[i] != rhs.item(i)) {
            return false;
        }
    }
    return true;
}
 
Example 6
Source File: Field.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
private ShortList convertToPrimitiveKind(ShortList itemValueType) {
    if (itemValueType != null) {
        int i;
        final int length = itemValueType.getLength();
        for (i = 0; i < length; ++i) {
            short type = itemValueType.item(i);
            if (type != convertToPrimitiveKind(type)) {
                break;
            }
        }
        if (i != length) {
            final short [] arr = new short[length];
            for (int j = 0; j < i; ++j) {
                arr[j] = itemValueType.item(j);
            }
            for(; i < length; ++i) {
                arr[i] = convertToPrimitiveKind(itemValueType.item(i));
            }
            return new ShortListImpl(arr, arr.length);
        }
    }
    return itemValueType;
}
 
Example 7
Source File: ShortListImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ShortList)) {
        return false;
    }
    ShortList rhs = (ShortList)obj;

    if (fLength != rhs.getLength()) {
        return false;
    }
    for (int i = 0;i < fLength; ++i) {
        if (fArray[i] != rhs.item(i)) {
            return false;
        }
    }
    return true;
}
 
Example 8
Source File: Field.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
private ShortList convertToPrimitiveKind(ShortList itemValueType) {
    if (itemValueType != null) {
        int i;
        final int length = itemValueType.getLength();
        for (i = 0; i < length; ++i) {
            short type = itemValueType.item(i);
            if (type != convertToPrimitiveKind(type)) {
                break;
            }
        }
        if (i != length) {
            final short [] arr = new short[length];
            for (int j = 0; j < i; ++j) {
                arr[j] = itemValueType.item(j);
            }
            for(; i < length; ++i) {
                arr[i] = convertToPrimitiveKind(itemValueType.item(i));
            }
            return new ShortListImpl(arr, arr.length);
        }
    }
    return itemValueType;
}
 
Example 9
Source File: ShortListImpl.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ShortList)) {
        return false;
    }
    ShortList rhs = (ShortList)obj;

    if (fLength != rhs.getLength()) {
        return false;
    }
    for (int i = 0;i < fLength; ++i) {
        if (fArray[i] != rhs.item(i)) {
            return false;
        }
    }
    return true;
}
 
Example 10
Source File: Field.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private ShortList convertToPrimitiveKind(ShortList itemValueType) {
    if (itemValueType != null) {
        int i;
        final int length = itemValueType.getLength();
        for (i = 0; i < length; ++i) {
            short type = itemValueType.item(i);
            if (type != convertToPrimitiveKind(type)) {
                break;
            }
        }
        if (i != length) {
            final short [] arr = new short[length];
            for (int j = 0; j < i; ++j) {
                arr[j] = itemValueType.item(j);
            }
            for(; i < length; ++i) {
                arr[i] = convertToPrimitiveKind(itemValueType.item(i));
            }
            return new ShortListImpl(arr, arr.length);
        }
    }
    return itemValueType;
}
 
Example 11
Source File: ShortListImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ShortList)) {
        return false;
    }
    ShortList rhs = (ShortList)obj;

    if (fLength != rhs.getLength()) {
        return false;
    }
    for (int i = 0;i < fLength; ++i) {
        if (fArray[i] != rhs.item(i)) {
            return false;
        }
    }
    return true;
}
 
Example 12
Source File: Field.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private ShortList convertToPrimitiveKind(ShortList itemValueType) {
    if (itemValueType != null) {
        int i;
        final int length = itemValueType.getLength();
        for (i = 0; i < length; ++i) {
            short type = itemValueType.item(i);
            if (type != convertToPrimitiveKind(type)) {
                break;
            }
        }
        if (i != length) {
            final short [] arr = new short[length];
            for (int j = 0; j < i; ++j) {
                arr[j] = itemValueType.item(j);
            }
            for(; i < length; ++i) {
                arr[i] = convertToPrimitiveKind(itemValueType.item(i));
            }
            return new ShortListImpl(arr, arr.length);
        }
    }
    return itemValueType;
}
 
Example 13
Source File: ShortListImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ShortList)) {
        return false;
    }
    ShortList rhs = (ShortList)obj;

    if (fLength != rhs.getLength()) {
        return false;
    }
    for (int i = 0;i < fLength; ++i) {
        if (fArray[i] != rhs.item(i)) {
            return false;
        }
    }
    return true;
}
 
Example 14
Source File: Field.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private ShortList convertToPrimitiveKind(ShortList itemValueType) {
    if (itemValueType != null) {
        int i;
        final int length = itemValueType.getLength();
        for (i = 0; i < length; ++i) {
            short type = itemValueType.item(i);
            if (type != convertToPrimitiveKind(type)) {
                break;
            }
        }
        if (i != length) {
            final short [] arr = new short[length];
            for (int j = 0; j < i; ++j) {
                arr[j] = itemValueType.item(j);
            }
            for(; i < length; ++i) {
                arr[i] = convertToPrimitiveKind(itemValueType.item(i));
            }
            return new ShortListImpl(arr, arr.length);
        }
    }
    return itemValueType;
}
 
Example 15
Source File: ShortListImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ShortList)) {
        return false;
    }
    ShortList rhs = (ShortList)obj;

    if (fLength != rhs.getLength()) {
        return false;
    }
    for (int i = 0;i < fLength; ++i) {
        if (fArray[i] != rhs.item(i)) {
            return false;
        }
    }
    return true;
}
 
Example 16
Source File: Field.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private ShortList convertToPrimitiveKind(ShortList itemValueType) {
    if (itemValueType != null) {
        int i;
        final int length = itemValueType.getLength();
        for (i = 0; i < length; ++i) {
            short type = itemValueType.item(i);
            if (type != convertToPrimitiveKind(type)) {
                break;
            }
        }
        if (i != length) {
            final short [] arr = new short[length];
            for (int j = 0; j < i; ++j) {
                arr[j] = itemValueType.item(j);
            }
            for(; i < length; ++i) {
                arr[i] = convertToPrimitiveKind(itemValueType.item(i));
            }
            return new ShortListImpl(arr, arr.length);
        }
    }
    return itemValueType;
}
 
Example 17
Source File: ShortListImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ShortList)) {
        return false;
    }
    ShortList rhs = (ShortList)obj;

    if (fLength != rhs.getLength()) {
        return false;
    }
    for (int i = 0;i < fLength; ++i) {
        if (fArray[i] != rhs.item(i)) {
            return false;
        }
    }
    return true;
}
 
Example 18
Source File: Field.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private ShortList convertToPrimitiveKind(ShortList itemValueType) {
    if (itemValueType != null) {
        int i;
        final int length = itemValueType.getLength();
        for (i = 0; i < length; ++i) {
            short type = itemValueType.item(i);
            if (type != convertToPrimitiveKind(type)) {
                break;
            }
        }
        if (i != length) {
            final short [] arr = new short[length];
            for (int j = 0; j < i; ++j) {
                arr[j] = itemValueType.item(j);
            }
            for(; i < length; ++i) {
                arr[i] = convertToPrimitiveKind(itemValueType.item(i));
            }
            return new ShortListImpl(arr, arr.length);
        }
    }
    return itemValueType;
}
 
Example 19
Source File: ShortListImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ShortList)) {
        return false;
    }
    ShortList rhs = (ShortList)obj;

    if (fLength != rhs.getLength()) {
        return false;
    }
    for (int i = 0;i < fLength; ++i) {
        if (fArray[i] != rhs.item(i)) {
            return false;
        }
    }
    return true;
}
 
Example 20
Source File: Field.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
private ShortList convertToPrimitiveKind(ShortList itemValueType) {
    if (itemValueType != null) {
        int i;
        final int length = itemValueType.getLength();
        for (i = 0; i < length; ++i) {
            short type = itemValueType.item(i);
            if (type != convertToPrimitiveKind(type)) {
                break;
            }
        }
        if (i != length) {
            final short [] arr = new short[length];
            for (int j = 0; j < i; ++j) {
                arr[j] = itemValueType.item(j);
            }
            for(; i < length; ++i) {
                arr[i] = convertToPrimitiveKind(itemValueType.item(i));
            }
            return new ShortListImpl(arr, arr.length);
        }
    }
    return itemValueType;
}