Copies the current configuration. The new object has the given value.
@param cursorStyle Style of the terminal text cursor
@return A copy of the current configuration with the changed value.
432311
public TerminalEmulatorDeviceConfiguration withCursorStyle(CursorStyle cursorStyle) {
        if(this.cursorStyle == cursorStyle) {
            return this;
        } else {
            return new TerminalEmulatorDeviceConfiguration(
                    this.lineBufferScrollbackSize,
                    this.blinkLengthInMilliSeconds,
                    cursorStyle,
                    this.cursorColor,
                    this.cursorBlinking,
                    this.clipboardAvailable);
        }
    }
692083
public CmsContainerElement copy() {

        CmsContainerElement result = new CmsContainerElement();
        result.m_clientId = m_clientId;
        result.m_hasSettings = m_hasSettings;
        result.m_inheritanceInfo = m_inheritanceInfo;
        result.m_new = m_new;
        result.m_newEditorDisabled = m_newEditorDisabled;
        result.m_permissionInfo = new CmsPermissionInfo(
            m_permissionInfo.hasViewPermission(),
            m_permissionInfo.hasWritePermission(),
            m_permissionInfo.getNoEditReason());
        result.m_releasedAndNotExpired = m_releasedAndNotExpired;
        result.m_resourceType = m_resourceType;
        result.m_iconClasses = m_iconClasses;
        result.m_sitePath = m_sitePath;
        result.m_subTitle = m_subTitle;
        result.m_title = m_title;
        result.m_elementView = m_elementView;
        result.m_modelGroupId = m_modelGroupId;
        result.m_wasModelGroup = m_wasModelGroup;
        result.m_isModelGroupAlwaysReplace = m_isModelGroupAlwaysReplace;
        return result;

    }
1343851
public static TextContainer copy(TextContainer src, TextContainer dest) {
        dest.setBackGround(src.getBackGround());

        dest.setBackgroundColor(src.getBackgroundColor());

        dest.setGravity(src.getGravity());

        dest.setRefreshFrequency(src.getRefreshFrequency());

        dest.setText(src.getText());

        dest.setTextSize(src.getTextSize());

        dest.setTextColor(src.getTextColor());

        dest.setTypeface(src.getTypeface());

        return dest;
    }
139961
final BlockLeaf copy()
  {
    BlockLeaf block = new BlockLeaf(getId(), _buffer);
    
    block._blobTail = _blobTail;
    block._rowHead = _rowHead;
    block._rowSortHead = _rowSortHead;
    block._keyMinSort = _keyMinSort;
    block._keyMaxSort = _keyMaxSort;
    
    return block;
  }
704011
public T copyIntoAnonymousSubclass() {
        T copy = Instantiator.of(type).instantiateAnonymousSubclass();
        return copyInto(copy);
    }
670569
public static ConfigurationManager getInstance()
		throws ConfigurationException
	{

		if (instance == null) {
			throw ErrorFactory
					.createConfigurationException(ErrorKeys.CONFIGURATION_CONFIGURATIONMANAGER_NOT_INITIALIZED);
		}
		return instance;
	}
1329530
public EmblReference copyEmblReference(EmblReference emblReference) {
		EmblReference copy = new EmblReference();
		copy.setReferenceAuthor(emblReference.getReferenceAuthor());
		copy.setReferenceComment(emblReference.getReferenceComment());
		copy.setReferenceCrossReference(emblReference.getReferenceCrossReference());
		copy.setReferenceGroup(emblReference.getReferenceGroup());
		copy.setReferenceLocation(emblReference.getReferenceLocation());
		copy.setReferenceNumber(emblReference.getReferenceNumber());
		copy.setReferencePosition(emblReference.getReferencePosition());
		copy.setReferenceTitle(emblReference.getReferenceTitle());
		return copy;
	}
1137779
public void copyFrom(PolicyInfo other) throws IOException {
    if (other.conf != null) {
      this.conf = other.conf;
    }
    if (other.description != null && other.description.length() > 0) {
      this.description = other.description;
    }
    if (other.srcPath != null) {
      this.srcPath = other.srcPath;
    }
    for (Object key : other.properties.keySet()) {
      String skey = (String) key;
      this.properties.setProperty(skey, other.properties.getProperty(skey));
    }
    
    if (other.destPath != null) {
      for (PathInfo p:destPath) {
        this.addDestPath(p.rpath.toString(), p.myproperties);
      }
    }
  }
563555
public URL copyWithDevice(String deviceAddress, String attrName, String attrValue) {
        return new URL(this.protocol, this.adapterAddress, deviceAddress, Collections.singletonMap(attrName, attrValue),
                this.serviceUUID, this.characteristicUUID, this.fieldName);
    }
1106067
public Cursor newCursor(String name)
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "newCursor", name);

    Cursor cursor = new Cursor(name,this,true);
        
    if (tc.isEntryEnabled())
      SibTr.exit(tc, "newCursor", cursor);
    
    return cursor;
  }
604975
public UpdateOptions copy() {
        return new UpdateOptions()
            .bypassDocumentValidation(getBypassDocumentValidation())
            .collation(getCollation())
            .multi(isMulti())
            .upsert(isUpsert())
            .writeConcern(getWriteConcern());
    }
41880
protected T cursorToObject(Cursor cursor) throws SQLException {
		return preparedQuery.mapRow(new AndroidDatabaseResults(cursor, null, true));
	}
497285
@Override
    public TextColumn copy() {
        TextColumn newCol = create(name(), size());
        int r = 0;
        for (String string : this) {
            newCol.set(r, string);
            r++;
        }
        return newCol;
    }
348805
Configuration copyWithIdentifier(String identifier) {
		return new Configuration(details.builder().identifier(identifier).build(), new HashMap<>(config));
	}
69474
public DBObject makeCopy(String objID) {
        DBObject newObj = new DBObject();
        newObj.m_valueMap.putAll(m_valueMap);
        newObj.setObjectID(objID);
        newObj.m_valueRemoveMap.putAll(m_valueRemoveMap);
        return newObj;
    }
1290515
private static void copyIfNotPresent(Configuration config, String deprecatedKey, String newKey) {
    String deprecatedValue = config.get(deprecatedKey);
    if (config.get(newKey) == null && deprecatedValue != null) {
      logger.atWarning().log(
          "Key %s is deprecated. Copying the value of key %s to new key %s",
          deprecatedKey, deprecatedKey, newKey);
      config.set(newKey, deprecatedValue);
    }
  }
617390
def copy(defaults={}, context={})
      self.class.find(rpc_execute('copy', id, defaults, context), context: context)
    end