All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.cloud.objectstorage.thirdparty.ion.IntegerSize Maven / Gradle / Ivy

Go to download

A single bundled dependency that includes all service and dependent JARs with third-party libraries relocated to different namespaces.

There is a newer version: 2.13.4
Show newest version
// Copyright (c) 2016 Amazon.com, Inc.  All rights reserved.

package software.amazon.ion;

/**
 * Indicates the smallest-possible Java type of an Ion {@code int} value.
 */
public enum IntegerSize
{
    /**
     * Fits in the Java {@code int} primitive (four bytes).
     * The value can be retrieved through methods like {@link IonReader#intValue()}
     * or {@link IonInt#intValue()} without data loss.
     */
    INT,

    /**
     * Fits in the Java {@code int} primitive (eight bytes).
     * The value can be retrieved through methods like {@link IonReader#longValue()}
     * or {@link IonInt#longValue()} without data loss.
     */
    LONG,

    /**
     * Larger than eight bytes. This value can be retrieved through methods like
     * {@link IonReader#bigIntegerValue()} or {@link IonInt#bigIntegerValue()}
     * without data loss.
     */
    BIG_INTEGER,

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy