/** * Check that the object is non-null * @param value Value * @throws IllegalArgumentException If value is null */ public static final void isNotNull(Object value) { isNotNull(value,null); }
public RuntimeMetadataImpl(QueryMetadataInterface metadata){ ArgCheck.isNotNull(metadata); this.metadata = metadata; }
public Permutation(Object[] items) { ArgCheck.isNotNull(items); this.items = items; }
/** * Check that the object is non-null * @param value Value * @throws IllegalArgumentException If value is null */ public static final void isNotNull(Object value) { isNotNull(value,null); }
public RuntimeMetadataImpl(QueryMetadataInterface metadata){ ArgCheck.isNotNull(metadata); this.metadata = metadata; }
public RuntimeMetadataImpl(QueryMetadataInterface metadata){ ArgCheck.isNotNull(metadata); this.metadata = metadata; }
/** * @param object */ public void setWorkItem(RequestWorkItem object) { ArgCheck.isNotNull(object); globalState.processorID = new WeakReference<RequestWorkItem>(object); }
/** * Construct a {@link HostInfo} that can resolve each * time an {@link InetAddress} is asked for. * @param host * @param port */ public HostInfo (String host, int port) { ArgCheck.isNotNull(host); this.hostName = host.toLowerCase(); this.portNumber = port; }
public boolean isWrapperFor(Class<?> iface) throws SQLException { ArgCheck.isNotNull(iface); return iface.isInstance(this); }
/** * @param object */ public void setWorkItem(RequestWorkItem object) { ArgCheck.isNotNull(object); globalState.processorID = new WeakReference<RequestWorkItem>(object); }
/** * Construct a {@link HostInfo} that can resolve each * time an {@link InetAddress} is asked for. * @param host * @param port */ public HostInfo (String host, int port) { ArgCheck.isNotNull(host); this.hostName = host.toLowerCase(); this.portNumber = port; }
/** * @param object */ public void setWorkItem(RequestWorkItem object) { ArgCheck.isNotNull(object); globalState.processorID = new WeakReference<RequestWorkItem>(object); }
public String getStringOrKey(final String key) { ArgCheck.isNotNull(key); String value = getProductValue(key); if (value == null) { try { return this.bundle.getString(key); } catch (final MissingResourceException err) { return key; } } return value; }
public String getStringOrKey(final String key) { ArgCheck.isNotNull(key); String value = getProductValue(key); if (value == null) { try { return this.bundle.getString(key); } catch (final MissingResourceException err) { return key; } } return value; }
private static void saveKey(String file, SecretKey key) throws CryptoException, IOException { ArgCheck.isNotNull(file); FileOutputStream fos = new FileOutputStream(file); try { KeyStore store = KeyStore.getInstance("JCEKS"); //$NON-NLS-1$ store.load(null,null); store.setKeyEntry(DEFAULT_ALIAS, key, DEFAULT_STORE_PASSWORD.toCharArray(),null); store.store(fos, DEFAULT_STORE_PASSWORD.toCharArray()); } catch (GeneralSecurityException e) { throw new CryptoException(CorePlugin.Event.TEIID10023, e); } finally { fos.close(); } }