Tabnine Logo
Assertions.nullCheck
Code IndexAdd Tabnine to your IDE (free)

How to use
nullCheck
method
in
org.identityconnectors.common.Assertions

Best Java code snippets using org.identityconnectors.common.Assertions.nullCheck (Showing top 20 results out of 315)

origin: net.tirasa.connid/connector-framework-internal

public AttributesToGetSearchResultsHandler(final ResultsHandler handler, final String[] attrsToGet) {
  super(attrsToGet);
  Assertions.nullCheck(handler, "handler");
  this.handler = handler;
}
origin: net.tirasa.connid/connector-framework-internal

public ApplicationClassLoaderHandler(final ClassLoader applicationClassLoader,
    final ObjectStreamHandler target) {
  Assertions.nullCheck(applicationClassLoader, "applicationClassLoader");
  Assertions.nullCheck(target, "target");
  this.applicationClassLoader = applicationClassLoader;
  this.target = target;
}
origin: org.connid/connid-framework-internal

public ApplicationClassLoaderHandler(final ClassLoader applicationClassLoader,
    final ObjectStreamHandler target) {
  Assertions.nullCheck(applicationClassLoader, "applicationClassLoader");
  Assertions.nullCheck(target, "target");
  _applicationClassLoader = applicationClassLoader;
  _target = target;
}
origin: net.tirasa.connid/connector-framework-internal

/**
 * Keep the attribute to get..
 */
public AttributesToGetResultsHandler(String[] attributesToGet) {
  Assertions.nullCheck(attributesToGet, "attrsToGet");
  this.attrsToGet = attributesToGet;
}
origin: org.connid/connid-framework-internal

public NormalizingResultsHandler(ResultsHandler target,
    ObjectNormalizerFacade normalizer) {
  Assertions.nullCheck(target, "target");
  Assertions.nullCheck(normalizer, "normalizer");
  _target = target;
  _normalizer = normalizer;
}
 
origin: net.tirasa.connid/connector-framework

/**
 * Convenience method to set {@link OperationOptions#OP_SORT_KEYS}.
 *
 * @param sortKeys The sort keys. May not be null.
 * @return A this reference to allow chaining
 * @since 1.4
 */
public OperationOptionsBuilder setSortKeys(final SortKey... sortKeys) {
  Assertions.nullCheck(sortKeys, "sortKeys");
  options.put(OperationOptions.OP_SORT_KEYS, sortKeys);
  return this;
}
origin: net.tirasa.connid/connector-framework

/**
 * Convenience method to set {@link OperationOptions#OP_PAGED_RESULTS_COOKIE}.
 *
 * @param pagedResultsCookie The pagedResultsCookie. May not be null.
 * @return A this reference to allow chaining
 * @since 1.4
 */
public OperationOptionsBuilder setPagedResultsCookie(final String pagedResultsCookie) {
  Assertions.nullCheck(pagedResultsCookie, "pagedResultsCookie");
  options.put(OperationOptions.OP_PAGED_RESULTS_COOKIE, pagedResultsCookie);
  return this;
}
origin: Tirasa/ConnId

/**
 * Set the run with password option.
 *
 * @return A this reference to allow chaining
 */
public OperationOptionsBuilder setRunWithPassword(final GuardedString password) {
  Assertions.nullCheck(password, "password");
  options.put(OperationOptions.OP_RUN_WITH_PASSWORD, password);
  return this;
}
origin: Tirasa/ConnId

/**
 * Convenience method to set {@link OperationOptions#OP_SCOPE}.
 *
 * @param scope The scope. May not be null.
 * @return A this reference to allow chaining
 */
public OperationOptionsBuilder setScope(final String scope) {
  Assertions.nullCheck(scope, "scope");
  options.put(OperationOptions.OP_SCOPE, scope);
  return this;
}
origin: Tirasa/ConnId

/**
 * Convenience method to set {@link OperationOptions#OP_PAGE_SIZE}.
 *
 * @param pageSize The pageSize. May not be null.
 * @return A this reference to allow chaining
 * @since 1.4
 */
public OperationOptionsBuilder setPageSize(final Integer pageSize) {
  Assertions.nullCheck(pageSize, "pageSize");
  options.put(OperationOptions.OP_PAGE_SIZE, pageSize);
  return this;
}
origin: Tirasa/ConnId

/**
 * Convenience method to set {@link OperationOptions#OP_SORT_KEYS}.
 *
 * @param sortKeys The sort keys. May not be null.
 * @return A this reference to allow chaining
 * @since 1.4
 */
public OperationOptionsBuilder setSortKeys(final SortKey... sortKeys) {
  Assertions.nullCheck(sortKeys, "sortKeys");
  options.put(OperationOptions.OP_SORT_KEYS, sortKeys);
  return this;
}
origin: org.connid/framework

public OperationOptionInfo(String name,
    Class<?> type) {
  Assertions.nullCheck(name, "name");
  Assertions.nullCheck(type, "type");
  FrameworkUtil.checkOperationOptionType(type);
  _name = name;
  _type = type;
}
 
origin: Tirasa/ConnId

/**
 * Convenience method to set {@link OperationOptions#OP_SORT_KEYS}.
 *
 * @param sortKeys The sort keys. May not be null.
 * @return A this reference to allow chaining
 * @since 1.4
 */
public OperationOptionsBuilder setSortKeys(final List<SortKey> sortKeys) {
  Assertions.nullCheck(sortKeys, "sortKeys");
  options.put(OperationOptions.OP_SORT_KEYS, sortKeys.toArray(new SortKey[sortKeys.size()]));
  return this;
}
origin: net.tirasa.connid/connector-framework

/**
 * Creates a new
 *
 * @param value
 *            May not be null. TODO: define set of allowed value types
 *            (currently same as set of allowed attribute values).
 */
public SyncToken(Object value) {
  Assertions.nullCheck(value, "value");
  FrameworkUtil.checkAttributeValue(value);
  this.value = value;
}
origin: org.connid/framework

Script(String scriptLanguage, String scriptText) {
  Assertions.blankCheck(scriptLanguage, "scriptLanguage");
  Assertions.nullCheck(scriptText, "scriptText"); // Allow empty text.
  this.scriptLanguage = scriptLanguage;
  this.scriptText = scriptText;
}
origin: net.tirasa.connid/connector-framework

/**
 * Adds one or many attributes to the {@link ConnectorObject}.
 */
public ConnectorObjectBuilder addAttribute(Attribute... attrs) {
  Assertions.nullCheck(attrs, "attrs");
  for (Attribute a : attrs) {
    attributeMap.put(a.getName(), a);
  }
  return this;
}
origin: org.connid/framework

/**
 * Creates a new
 * 
 * @param value
 *            May not be null. TODO: define set of allowed value types
 *            (currently same as set of allowed attribute values).
 */
public SyncToken(Object value) {
  Assertions.nullCheck(value, "value");
  FrameworkUtil.checkAttributeValue(value);
  _value = value;
}
origin: Tirasa/ConnId

/**
 * Add all the {@link Attribute}s of a {@link Collection}.
 */
public ConnectorObjectBuilder addAttributes(Collection<Attribute> attrs) {
  Assertions.nullCheck(attrs, "attrs");
  for (Attribute a : attrs) {
    attributeMap.put(a.getName(), a);
  }
  return this;
}
origin: Tirasa/ConnId

/**
 * Creates a new
 *
 * @param value
 *            May not be null. TODO: define set of allowed value types
 *            (currently same as set of allowed attribute values).
 */
public SyncToken(Object value) {
  Assertions.nullCheck(value, "value");
  FrameworkUtil.checkAttributeValue(value);
  this.value = value;
}
origin: org.connid/connid-framework-internal

public boolean handle(final Object obj) {
  Assertions.nullCheck(obj, "obj");
  try {
    _buffer.put(obj);
  }
  catch (InterruptedException e) {
    Thread.currentThread().interrupt();
    throw ConnectorException.wrap(e);
  }
  return !isStopped();
}
 
org.identityconnectors.commonAssertionsnullCheck

Javadoc

Throws NullPointerException if the parameter o is null.

Popular methods of Assertions

  • blankCheck
    Throws IllegalArgumentException if the parameter o is null or blank.
  • blankChecked
    Throws IllegalArgumentException if the parameter o is null or blank, otherwise returns the value of
  • nullChecked
    Throws NullPointerException if the parameter o isnull, otherwise returns the value of the o paramete

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFrame (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now