List of usage examples for java.lang Number intValue
public abstract int intValue();
From source file:com.prowidesoftware.swift.model.field.Field29G.java
/** * Set the component1 from a Number object. * <br />//www . j a v a2s . c o m * <em>If the component being set is a fixed length number, the argument will not be * padded.</em> It is recommended for these cases to use the setComponent1(String) * method. * * @see #setComponent1(String) * * @param component1 the Number with the component1 content to set */ public Field29G setComponent1(java.lang.Number component1) { if (component1 != null) { setComponent(1, "" + component1.intValue()); } return this; }
From source file:com.prowidesoftware.swift.model.field.Field29G.java
/** * Set the component3 from a Number object. * <br />//from www . j a v a 2s. c om * <em>If the component being set is a fixed length number, the argument will not be * padded.</em> It is recommended for these cases to use the setComponent3(String) * method. * * @see #setComponent3(String) * * @param component3 the Number with the component3 content to set */ public Field29G setComponent3(java.lang.Number component3) { if (component3 != null) { setComponent(3, "" + component3.intValue()); } return this; }
From source file:com.prowidesoftware.swift.model.field.Field29G.java
/** * Set the component5 from a Number object. * <br />//ww w . ja v a 2 s .c o m * <em>If the component being set is a fixed length number, the argument will not be * padded.</em> It is recommended for these cases to use the setComponent5(String) * method. * * @see #setComponent5(String) * * @param component5 the Number with the component5 content to set */ public Field29G setComponent5(java.lang.Number component5) { if (component5 != null) { setComponent(5, "" + component5.intValue()); } return this; }
From source file:com.prowidesoftware.swift.model.field.Field29G.java
/** * Set the component7 from a Number object. * <br />/*from w w w . j a va 2s . c o m*/ * <em>If the component being set is a fixed length number, the argument will not be * padded.</em> It is recommended for these cases to use the setComponent7(String) * method. * * @see #setComponent7(String) * * @param component7 the Number with the component7 content to set */ public Field29G setComponent7(java.lang.Number component7) { if (component7 != null) { setComponent(7, "" + component7.intValue()); } return this; }
From source file:com.prowidesoftware.swift.model.field.Field29G.java
/** * Set the component9 from a Number object. * <br />//from w ww .j ava 2s. co m * <em>If the component being set is a fixed length number, the argument will not be * padded.</em> It is recommended for these cases to use the setComponent9(String) * method. * * @see #setComponent9(String) * * @param component9 the Number with the component9 content to set */ public Field29G setComponent9(java.lang.Number component9) { if (component9 != null) { setComponent(9, "" + component9.intValue()); } return this; }
From source file:com.vkassin.mtrade.Common.java
/** * ? ?//from ww w . ja va 2 s .co m * @param profile - ? ? ? * @param text - ? ? * @param isPKCS7 - ? * true - ? PKCS#7 * false - ?? ? * @return ?. */ public static byte[] signText(String profile, byte[] text, boolean isPKCS7) { byte[] ret = null; Number hProv = 0; Number hHash = 0; try { hProv = TumarCspFunctions.cpAcquireContext(profile, 0, 0); hHash = TumarCspFunctions.cpCreateHash(hProv, 0x801d, 0, 0); TumarCspFunctions.cpHashData(hProv, hHash, text, text.length, 0); if (isPKCS7) { ret = TumarCspFunctions.cpSignHashData(hProv, hHash, LibraryWrapper.AT_SIGNATURE, null, LibraryWrapper.CRYPT_SIGN_PKCS7); } else { ret = TumarCspFunctions.cpSignHashData(hProv, hHash, LibraryWrapper.AT_SIGNATURE, null, 0); } TumarCspFunctions.cpDestroyHash(hProv, hHash); hHash = 0; TumarCspFunctions.cpReleaseContext(hProv, 0); hProv = 0; } catch (Exception ex) { if (hHash.intValue() != 0) { TumarCspFunctions.cpDestroyHash(hProv, hHash); } if (hProv.intValue() != 0) { TumarCspFunctions.cpReleaseContext(hProv, 0); } ex.printStackTrace(); } return ret; }
From source file:name.livitski.databag.cli.Launcher.java
private void initDb(File location) { db = new Manager(); db.setLocation(location);/*from w ww. ja v a 2 s . c o m*/ if (hasOption(COMPRESSION_OPTION)) db.setCompressionType(optionValue(COMPRESSION_OPTION).toUpperCase()); if (hasOption(LOB_SIZE_OPTION)) try { Number arg = (Number) options.getParsedOptionValue(LOB_SIZE_OPTION); if (0.01 < Math.abs(arg.doubleValue() - arg.intValue()) || 0 > arg.intValue()) throw new IllegalArgumentException( "Value of --" + LOB_SIZE_OPTION + " must be a positive integer, got: " + arg); db.setInPlaceLobThreshold(arg.intValue()); } catch (ParseException err) { throw new IllegalArgumentException("Value of --" + LOB_SIZE_OPTION + " must be a number, got: " + options.getOptionValue(LOB_SIZE_OPTION), err); } if (hasOption(ENCRYPT_OPTION)) initEncryption(); }
From source file:com.prowidesoftware.swift.model.field.Field29G.java
/** * Set the component11 from a Number object. * <br />//from w w w .jav a 2s . c o m * <em>If the component being set is a fixed length number, the argument will not be * padded.</em> It is recommended for these cases to use the setComponent11(String) * method. * * @see #setComponent11(String) * * @param component11 the Number with the component11 content to set */ public Field29G setComponent11(java.lang.Number component11) { if (component11 != null) { setComponent(11, "" + component11.intValue()); } return this; }
From source file:com.prowidesoftware.swift.model.field.Field29G.java
/** * Set the component13 from a Number object. * <br />// w w w .j a va2s . co m * <em>If the component being set is a fixed length number, the argument will not be * padded.</em> It is recommended for these cases to use the setComponent13(String) * method. * * @see #setComponent13(String) * * @param component13 the Number with the component13 content to set */ public Field29G setComponent13(java.lang.Number component13) { if (component13 != null) { setComponent(13, "" + component13.intValue()); } return this; }
From source file:com.prowidesoftware.swift.model.field.Field29G.java
/** * Set the component15 from a Number object. * <br />/*from www . j a va2 s .c om*/ * <em>If the component being set is a fixed length number, the argument will not be * padded.</em> It is recommended for these cases to use the setComponent15(String) * method. * * @see #setComponent15(String) * * @param component15 the Number with the component15 content to set */ public Field29G setComponent15(java.lang.Number component15) { if (component15 != null) { setComponent(15, "" + component15.intValue()); } return this; }