本文整理匯總了Java中java.lang.Integer類的典型用法代碼示例。如果您正苦於以下問題:Java Integer類的具體用法?Java Integer怎麽用?Java Integer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Integer類屬於java.lang包,在下文中一共展示了Integer類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: wrapperPBEKeyTest
import java.lang.Integer; //導入依賴的package包/類
private void wrapperPBEKeyTest(Provider p) throws InvalidKeySpecException,
InvalidKeyException, NoSuchPaddingException,
IllegalBlockSizeException, InvalidAlgorithmParameterException,
NoSuchAlgorithmException {
for (String alg : PBE_ALGORITHM_AR) {
String baseAlgo = alg.split("/")[0].toUpperCase();
// only run the tests on longer key lengths if unlimited version
// of JCE jurisdiction policy files are installed
if (Cipher.getMaxAllowedKeyLength(alg) < Integer.MAX_VALUE
&& (baseAlgo.endsWith("TRIPLEDES") || alg
.endsWith("AES_256"))) {
out.println("keyStrength > 128 within " + alg
+ " will not run under global policy");
continue;
}
SecretKeyFactory skf = SecretKeyFactory.getInstance(baseAlgo, p);
SecretKey key = skf.generateSecret(new PBEKeySpec("Secret Lover"
.toCharArray()));
wrapTest(alg, alg, key, key, Cipher.SECRET_KEY, true);
}
}
示例2: getOutputMapNamesFromConfig
import java.lang.Integer; //導入依賴的package包/類
/**
* See wflow_adapt.py:
* # Try and read config file and set default options
* config = ConfigParser.SafeConfigParser()
* config.optionxform = str
* config.read(case + "/" + iniFile)
*
* # Get outpumapstacks from wflow ini
* mstacks = config.options('outputmaps')
* for a in mstacks:
* var = config.get("outputmaps",a)
*
* @return String[] outmap names.
*/
public String[] getOutputMapNamesFromConfig(File configFile) {
try {
this.jep.eval("tempConfig = ConfigParser.SafeConfigParser()");
this.jep.eval("tempConfig.optionxform = str");
String configFilePath = BBUtils.getFilePathStringForPython(configFile);
this.jep.set("configFilePath", configFilePath);
this.jep.eval("tempConfig.read(configFilePath)");
this.jep.eval("tempOutputMaps = tempConfig.options('outputmaps')");
int numberOfOutputMaps = (Integer) this.jep.getValue("len(tempOutputMaps)");
String[] outputMapNames = new String[numberOfOutputMaps];
for (int i = 0; i < outputMapNames.length; i++) {
this.jep.set("tempIndex", i);
outputMapNames[i] = (String) this.jep.getValue("tempConfig.get('outputmaps', tempOutputMaps[tempIndex])");
}
return outputMapNames;
} catch (JepException e) {
throw new RuntimeException(getClass().getSimpleName() + ": exception during call to python code. Message was: " + e.getMessage(), e);
}
}
示例3: readPcRasterMapValues
import java.lang.Integer; //導入依賴的package包/類
public static synchronized void readPcRasterMapValues(Jep jep, String variableName, double[] dest) throws JepException {
String bufferName = "readPcRasterMapValues" + dest.length;
Map<Integer, DoubleBuffer> map = readPcRasterMapValuesBuffers.get(jep);
if (map == null) {
map = new HashMap<Integer, DoubleBuffer>();
readPcRasterMapValuesBuffers.put(jep, map);
}
DoubleBuffer buffer = map.get(dest.length);
if (buffer == null) {
buffer = buffers.get(dest.length);
if (buffer == null) {
buffer = createNativeDoubleBuffer(dest.length);
buffers.put(dest.length, buffer);
}
declareDoubleArray(jep, bufferName, buffer);
map.put(dest.length, buffer);
}
jep.eval(bufferName + "[:]=reshape(pcr2numpy(" + variableName + ", 1E31), " + dest.length + ')');
buffer.rewind();
buffer.get(dest);
}
示例4: AntennaFields
import java.lang.Integer; //導入依賴的package包/類
public AntennaFields(@Nonnull String __typename, @Nullable Coordinates coordinates,
@Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
@Nullable String status, @Nullable Integer dist, @Nullable String insee,
@Nullable String city, @Nullable String addressLabel) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
}
示例5: NearestAntennaFromOrange
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromOrange(@Nonnull String __typename, @Nullable Coordinates coordinates,
@Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
@Nullable String status, @Nullable Integer dist, @Nullable String insee,
@Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}
示例6: NearestAntennaFromBouygues
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromBouygues(@Nonnull String __typename,
@Nullable Coordinates1 coordinates, @Nullable String generation, @Nullable String provider,
@Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
@Nullable String insee, @Nullable String city, @Nullable String addressLabel,
@Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}
示例7: NearestAntennaFromSfr
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromSfr(@Nonnull String __typename, @Nullable Coordinates2 coordinates,
@Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
@Nullable String status, @Nullable Integer dist, @Nullable String insee,
@Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}
示例8: NearestAntennaFromFree
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromFree(@Nonnull String __typename, @Nullable Coordinates3 coordinates,
@Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
@Nullable String status, @Nullable Integer dist, @Nullable String insee,
@Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}
示例9: NearestAntennaFromOrange1
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromOrange1(@Nonnull String __typename, @Nullable Coordinates4 coordinates,
@Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
@Nullable String status, @Nullable Integer dist, @Nullable String insee,
@Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}
示例10: NearestAntennaFromBouygues1
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromBouygues1(@Nonnull String __typename,
@Nullable Coordinates5 coordinates, @Nullable String generation, @Nullable String provider,
@Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
@Nullable String insee, @Nullable String city, @Nullable String addressLabel,
@Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}
示例11: NearestAntennaFromFree1
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromFree1(@Nonnull String __typename, @Nullable Coordinates7 coordinates,
@Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
@Nullable String status, @Nullable Integer dist, @Nullable String insee,
@Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}
示例12: NearestAntennaFromOrange2
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromOrange2(@Nonnull String __typename, @Nullable Coordinates8 coordinates,
@Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
@Nullable String status, @Nullable Integer dist, @Nullable String insee,
@Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}
示例13: NearestAntennaFromBouygues2
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromBouygues2(@Nonnull String __typename,
@Nullable Coordinates9 coordinates, @Nullable String generation, @Nullable String provider,
@Nullable String lastUpdate, @Nullable String status, @Nullable Integer dist,
@Nullable String insee, @Nullable String city, @Nullable String addressLabel,
@Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}
示例14: NearestAntennaFromSfr2
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromSfr2(@Nonnull String __typename, @Nullable Coordinates10 coordinates,
@Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
@Nullable String status, @Nullable Integer dist, @Nullable String insee,
@Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}
示例15: NearestAntennaFromFree2
import java.lang.Integer; //導入依賴的package包/類
public NearestAntennaFromFree2(@Nonnull String __typename, @Nullable Coordinates11 coordinates,
@Nullable String generation, @Nullable String provider, @Nullable String lastUpdate,
@Nullable String status, @Nullable Integer dist, @Nullable String insee,
@Nullable String city, @Nullable String addressLabel, @Nonnull Fragments fragments) {
if (__typename == null) {
throw new NullPointerException("__typename can't be null");
}
this.__typename = __typename;
this.coordinates = coordinates;
this.generation = generation;
this.provider = provider;
this.lastUpdate = lastUpdate;
this.status = status;
this.dist = dist;
this.insee = insee;
this.city = city;
this.addressLabel = addressLabel;
if (fragments == null) {
throw new NullPointerException("fragments can't be null");
}
this.fragments = fragments;
}