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

com.github.andyshao.lang.ShortShortWrapper Maven / Gradle / Ivy

The newest version!
package com.github.andyshao.lang;

import java.math.BigInteger;

/**
 * 
 * Title:
* Descript:
* Copyright: Copryright(c) Apr 5, 2015
* Encoding:UNIX UTF-8 * * @author Andy.Shao * */ public class ShortShortWrapper implements ShortWrapper { @Override public short getShort(short[] array , BigInteger position) { return array[position.intValue()]; } @Override public void setShort(short[] array , BigInteger position , short s) { array[position.intValue()] = s; } @Override public BigInteger size(short[] array) { return BigInteger.valueOf(array.length); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy