Example usage for org.apache.commons.collections4.bidimap DualHashBidiMap DualHashBidiMap

List of usage examples for org.apache.commons.collections4.bidimap DualHashBidiMap DualHashBidiMap

Introduction

In this page you can find the example usage for org.apache.commons.collections4.bidimap DualHashBidiMap DualHashBidiMap.

Prototype

public DualHashBidiMap() 

Source Link

Document

Creates an empty HashBidiMap.

Usage

From source file:gnomezgrave.gsyncj.auth.ProfileSettings.java

public ProfileSettings(String userName, String profileName, String filePath, String syncPath) {
    this.userName = userName;
    this.profileName = profileName;
    this.filePath = filePath;
    this.syncPath = syncPath;
    files = new DualHashBidiMap<>();
}

From source file:gnomezgrave.gsyncj.auth.Profile.java

public Profile(String userName, String profileName, String filePath, String syncPath) {
    this.userName = userName;
    this.profileName = profileName;
    this.filePath = filePath + "/" + profileName;
    this.syncPath = syncPath;
    files = new DualHashBidiMap<>();
}

From source file:de.decoit.simu.cbor.xml.dictionary.DictionaryComplexElement.java

/**
 * Create a new complex element object that maps the specified XML name to the specified CBOR name.
 * Both name parameters MUST NOT be null. Addtionally the XML name MUST NOT be
 * empty or whitespace only. The attribute and nested element maps are empty after construction.
 *
 * @param xmlName Name as used in XML representation
 * @param cborName Name as used in CBOR representation
 */// w ww  .  ja  va 2s . c  o  m
public DictionaryComplexElement(String xmlName, DataItem cborName) {
    super(xmlName, cborName);

    this.nestedElements = new DualHashBidiMap<>();

    if (log.isTraceEnabled()) {
        log.trace("DictionaryComplexElement constructed:");
        log.trace(this.toString());
    }
}

From source file:de.decoit.simu.cbor.xml.dictionary.DictionaryEnumValueAttribute.java

/**
 * Create a new enum value attribute object that maps the specified XML name to the specified CBOR name.
 * Both name parameters MUST NOT be null. Addtionally the XML name MUST NOT be
 * empty or whitespace only. The enum value map is empty after construction.
 *
 * @param xmlName Name as used in XML representation
 * @param cborName Name as used in CBOR representation
 *//*from w  w w.j  a  va 2  s . c om*/
public DictionaryEnumValueAttribute(String xmlName, DataItem cborName) {
    super(xmlName, cborName);

    this.enumValues = new DualHashBidiMap<>();

    if (log.isTraceEnabled()) {
        log.trace("DictionaryEnumValueAttribute constructed:");
        log.trace(this.toString());
    }
}

From source file:de.decoit.simu.cbor.xml.dictionary.DictionaryEnumValueElement.java

/**
 * Create a new enum value element object that maps the specified XML name to the specified CBOR name.
 * Both name parameters MUST NOT be null. Addtionally the XML name MUST NOT be
 * empty or whitespace only. The attribute and enum value maps are empty after construction.
 *
 * @param xmlName Name as used in XML representation
 * @param cborName Name as used in CBOR representation
 *//*  w w  w .j a  v a 2  s  . c o  m*/
public DictionaryEnumValueElement(String xmlName, DataItem cborName) {
    super(xmlName, cborName);

    this.enumValues = new DualHashBidiMap<>();

    if (log.isTraceEnabled()) {
        log.trace("DictionaryEnumValueElement constructed:");
        log.trace(this.toString());
    }
}

From source file:de.decoit.simu.cbor.xml.dictionary.DictionarySimpleElement.java

/**
 * Create a new simple element object that maps the specified XML name to the specified CBOR name.
 * Both name parameters MUST NOT be null. Addtionally the XML name MUST NOT be
 * empty or whitespace only. The map of attributes is empty after construction.
 *
 * @param xmlName Name as used in XML representation
 * @param cborName Name as used in CBOR representation
 */// w ww .  jav a2s  . com
public DictionarySimpleElement(String xmlName, DataItem cborName) {
    if (StringUtils.isBlank(xmlName)) {
        throw new IllegalArgumentException("XML name must not be blank");
    }

    if (cborName == null) {
        throw new IllegalArgumentException("CBOR name must not be null");
    }

    this.cborName = cborName;
    this.xmlName = xmlName;
    this.attributes = new DualHashBidiMap<>();

    if (log.isTraceEnabled()) {
        log.trace("DictionarySimpleElement constructed:");
        log.trace(this.toString());
    }
}

From source file:de.decoit.simu.cbor.xml.dictionary.DictionaryNamespace.java

/**
 * Create a new namespace object that maps the specified XML name to the specified CBOR name.
 * Both name parameters MUST NOT be null. Addtionally the XML name MUST NOT be
 * empty or whitespace only. The map of elements is empty after construction.
 *
 * @param xmlName Name as used in XML representation
 * @param cborName Name as used in CBOR representation
 *//*  w w w  .j a  v a2s.  c om*/
public DictionaryNamespace(String xmlName, DataItem cborName) {
    if (StringUtils.isBlank(xmlName)) {
        throw new IllegalArgumentException("XML name must not be blank");
    }

    if (cborName == null) {
        throw new IllegalArgumentException("CBOR name must not be null");
    }

    this.cborName = cborName;
    this.xmlName = xmlName;
    this.elements = new DualHashBidiMap<>();

    if (log.isTraceEnabled()) {
        log.trace("DictionaryNamespace constructed:");
        log.trace(this.toString());
    }
}

From source file:dkf.model.interaction.InteractionClassModelManager.java

public InteractionClassModelManager() {
    this.published = new HashMap<String, InteractionClassModel>();
    this.mapInstanceNameInteractionClassEntity = new HashMap<String, InteractionClassEntity>();

    this.subscribed = new HashMap<String, InteractionClassModel>();
    this.mapInteractionClassHandleClass = new DualHashBidiMap<InteractionClassHandle, Class>();
}

From source file:dkf.model.object.ObjectClassModelManager.java

public ObjectClassModelManager() {
    this.published = new HashMap<String, ObjectClassModel>();
    this.mapInstanceNameObjectClassEntity = new DualHashBidiMap<String, ObjectClassEntity>();

    this.subscribed = new HashMap<String, ObjectClassModel>();
    this.mapHandleClassObjectClass = new HashMap<ObjectClassHandle, Class>();
    this.objectInstanceHandleObjectClassHandle = new HashMap<ObjectInstanceHandle, ObjectClassHandleEntity>();
}

From source file:de.decoit.simu.cbor.xml.dictionary.Dictionary.java

/**
 * Create a new empty dictionary./*from w ww.j av a2  s.c  o  m*/
 * Constructor is package private because a dictionary should be provided by
 * the {@link DictionaryProvider}.
 */
Dictionary() {
    this.namespaces = new DualHashBidiMap<>();

    if (log.isTraceEnabled()) {
        log.trace("Dictionary constructed:");
        log.trace(this.toString());
    }
}