com.github.andyshao.lang.CharCharWrapper 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 CharCharWrapper implements CharWrapper {
@Override
public char getChar(char[] array , BigInteger position) {
return array[position.intValue()];
}
@Override
public void setChar(char[] array , BigInteger position , char c) {
array[position.intValue()] = c;
}
@Override
public BigInteger size(char[] array) {
return BigInteger.valueOf(array.length);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy