com.github.andyshao.lang.ShortCharWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Gear Show documentation
Show all versions of Gear Show documentation
Enhance and formating the coding of JDK
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