read Big Decimal from Parcel - Android android.os

Android examples for android.os:Parcel

Description

read Big Decimal from Parcel

Demo Code


//package com.java2s;
import android.os.Parcel;

import java.math.BigDecimal;

public class Main {
    public static BigDecimal readBigDecimal(Parcel source) {
        return readValue(source, BigDecimal.class);
    }//from w w  w  . j ava 2s  .c o m

    public static <T> T readValue(Parcel source, Class<T> resultType) {
        return (T) source.readValue(resultType.getClassLoader());
    }
}

Related Tutorials