当前位置: 首页>>代码示例>>Java>>正文


Java Integer类代码示例

本文整理汇总了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);
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:23,代码来源:TestCipherKeyWrapperTest.java

示例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);
	}
}
 
开发者ID:OpenDA-Association,项目名称:OpenDA,代码行数:34,代码来源:WflowPythonToJavaAdapter.java

示例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);
}
 
开发者ID:OpenDA-Association,项目名称:OpenDA,代码行数:22,代码来源:WflowPythonToJavaAdapter.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:19,代码来源:AntennaFields.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:23,代码来源:SearchQuery.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:24,代码来源:SearchQuery.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:23,代码来源:SearchQuery.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:23,代码来源:SearchQuery.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:23,代码来源:SearchQuery.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:24,代码来源:SearchQuery.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:23,代码来源:SearchQuery.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:23,代码来源:SearchQuery.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:24,代码来源:SearchQuery.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:23,代码来源:SearchQuery.java

示例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;
}
 
开发者ID:gdrouet,项目名称:nightclazz-graphql,代码行数:23,代码来源:SearchQuery.java


注:本文中的java.lang.Integer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。