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

com.github.andyshao.lang.CharShortWrapper 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 CharShortWrapper implements ShortWrapper { @Override public short getShort(char[] array , BigInteger position) { return (short) array[position.intValue()]; } @Override public void setShort(char[] array , BigInteger position , short s) { array[position.intValue()] = (char) s; } @Override public BigInteger size(char[] array) { return BigInteger.valueOf(array.length); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy