com.github.andyshao.lang.LongLongWrapper 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 LongLongWrapper implements LongWrapper {
@Override
public long getLong(long[] array , BigInteger position) {
return array[position.intValue()];
}
@Override
public void setLong(long[] array , BigInteger position , long l) {
array[position.intValue()] = l;
}
@Override
public BigInteger size(long[] array) {
return BigInteger.valueOf(array.length);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy