All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arangodb.util.AbstractOptions Maven / Gradle / Ivy

There is a newer version: 7.15.0
Show newest version
package com.arangodb.util;

import java.util.List;
import java.util.Map;

public abstract class AbstractOptions {

	protected void putAttribute(Map object, String key, Object value) {
		if (value != null) {
			object.put(key, value);
		}
	}

	protected void putAttributeToLower(Map object, String key, Object value) {
		if (value != null) {
			object.put(key, value.toString().toLowerCase());
		}
	}

	protected void putAttribute(MapBuilder object, String key, Object value) {
		if (value != null) {
			object.put(key, value);
		}
	}

	protected void putAttributeToLower(MapBuilder object, String key, Object value) {
		if (value != null) {
			object.put(key, value.toString().toLowerCase());
		}
	}

	protected void putAttributeCollection(MapBuilder object, String key, List value) {
		if (CollectionUtils.isNotEmpty(value)) {
			object.put(key, value);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy