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

com.github.andyshao.lang.ShortCharWrapper 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 ShortCharWrapper implements CharWrapper { @Override public char getChar(short[] array , BigInteger position) { return (char) array[position.intValue()]; } @Override public void setChar(short[] array , BigInteger position , char c) { array[position.intValue()] = (short) c; } @Override public BigInteger size(short[] array) { return BigInteger.valueOf(array.length); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy