Examples of IdentityMap


Examples of com.esotericsoftware.kryo.util.IdentityMap

  public <T> T copy (T object) {
    if (object == null) return null;
    if (copyShallow) return object;
    depth++;
    try {
      if (originalToCopy == null) originalToCopy = new IdentityMap();
      Object existingCopy = originalToCopy.get(object);
      if (existingCopy != null) return (T)existingCopy;

      needsCopyReference = object;
      Object copy;
View Full Code Here

Examples of com.esotericsoftware.kryo.util.IdentityMap

  public <T> T copy (T object, Serializer serializer) {
    if (object == null) return null;
    if (copyShallow) return object;
    depth++;
    try {
      if (originalToCopy == null) originalToCopy = new IdentityMap();
      Object existingCopy = originalToCopy.get(object);
      if (existingCopy != null) return (T)existingCopy;

      needsCopyReference = object;
      Object copy;
View Full Code Here

Examples of com.esotericsoftware.kryo.util.IdentityMap

  public <T> T copyShallow (T object) {
    if (object == null) return null;
    depth++;
    copyShallow = true;
    try {
      if (originalToCopy == null) originalToCopy = new IdentityMap();
      Object existingCopy = originalToCopy.get(object);
      if (existingCopy != null) return (T)existingCopy;

      needsCopyReference = object;
      Object copy;
View Full Code Here

Examples of com.esotericsoftware.kryo.util.IdentityMap

  public <T> T copyShallow (T object, Serializer serializer) {
    if (object == null) return null;
    depth++;
    copyShallow = true;
    try {
      if (originalToCopy == null) originalToCopy = new IdentityMap();
      Object existingCopy = originalToCopy.get(object);
      if (existingCopy != null) return (T)existingCopy;

      needsCopyReference = object;
      Object copy;
View Full Code Here

Examples of com.go.trove.util.IdentityMap

        synchronized (cEncodings) {
            Map[] caches = (Map[])cEncodings.get(encoding);
            if (caches == null) {
                caches = new Map[CACHES_PER_ENCODING];
                for (int i=0; i<CACHES_PER_ENCODING; i++) {
                    caches[i] = Collections.synchronizedMap(new IdentityMap());
                }
                cEncodings.put(encoding, caches);
            }
            return caches;
        }
View Full Code Here

Examples of com.go.trove.util.IdentityMap

     */
    public DistributedSocketFactory(long timeout) {
        mTimeout = timeout;
        mFactories = Collections.synchronizedList(new ArrayList());
        mResurrectors = Collections.synchronizedMap(new HashMap());
        mSocketSources = Collections.synchronizedMap(new IdentityMap());

        mListener = new CheckedSocket.ExceptionListener() {
            public void exceptionOccurred(CheckedSocket s, Exception e, int count) {
                if (count == 1) {
                    deadFactory((SocketFactory)mSocketSources.get(s));
View Full Code Here

Examples of eu.stratosphere.pact.compiler.util.IdentityMap

      JoinOperator mat5 = JoinOperator.builder(new DummyMatchStub(), IntValue.class, 0, 0)
        .input1(sourceA)
        .input2(mat4)
        .build();
     
      MapOperator ma = MapOperator.builder(new IdentityMap()).input(sourceA).build();
     
      JoinOperator mat6 = JoinOperator.builder(new DummyMatchStub(), IntValue.class, 0, 0)
        .input1(ma)
        .input2(ma)
        .build();
View Full Code Here

Examples of org.apache.commons.collections.map.IdentityMap

        _conf = factory.getConfiguration();
        _compat = _conf.getCompatibilityInstance();
        _factory = factory;
        _log = _conf.getLog(OpenJPAConfiguration.LOG_RUNTIME);
        _cache = new ManagedCache(newManagedObjectCache());
        _operating = MapBackedSet.decorate(new IdentityMap());
        _connRetainMode = connMode;
        _managed = managed;
        if (managed)
            _runtime = _conf.getManagedRuntimeInstance();
        else
View Full Code Here

Examples of org.apache.commons.collections.map.IdentityMap

        if (_factory.syncWithManagedTransaction(this, false))
            beginInternal();
    }

    private void initializeOperatingSet() {
        _operating = MapBackedSet.decorate(new IdentityMap());
    }
View Full Code Here

Examples of org.apache.commons.collections.map.IdentityMap

        _full = full && broker.getDetachState() == DetachState.DETACH_LOADED;
        if (_full) {
            _detached = null;
            _fullFM = new DetachFieldManager();
        } else {
            _detached = new IdentityMap();
            _fullFM = null;
        }
        Compatibility compatibility =
            broker.getConfiguration().getCompatibilityInstance();
        _flushBeforeDetach = compatibility.getFlushBeforeDetach();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.