Sets/initializes the object.

@param object the object to set.
@return the set object.
426803
public synchronized @NonNull T set(T object) {
		if (this.object != null) {
			throw new IllegalStateException("Already initialized");
		}
		this.object = object;
		return object;
	}
375873
def set_object(self, obj, properties):
        """"""
        self._objects.add(obj)
        properties = set(properties)
        self._properties |= properties
        pairs = self._pairs
        for p in self._properties:
            if p in properties:
                pairs.add((obj, p))
            else:
                pairs.discard((obj, p))
126380
public void set(final String originalKey, final Object object) {
        final String key = applicationName + "." + originalKey;
        if (object == null || (object instanceof String && ((String) object).length() == 0)) {
            // remove
            application.setConfig(application.getConfig().withoutPath(key));
        } else {
            // create or update
            ConfigValue value = ConfigValueFactory.fromAnyRef(object, "modified at runtime ");
            application.setConfig(application.getConfig().withValue(key, value));
        }
        // merge global config (no reloading)
        config = application.getConfig().withFallback(user.getConfig()).withFallback(system.getConfig());
    }
1374816
public synchronized Object put(Object name,Object value)
    {
        if (_initParams==null)
            _initParams=new HashMap(3);
        return _initParams.put(name,value);
    }
119917
public static void setProperties(Object object, Map map) {
        MetaClass mc = getMetaClass(object);
        for (Object o : map.entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            String key = entry.getKey().toString();
            Object value = entry.getValue();
            setPropertySafe(object, mc, key, value);
        }
    }
629206
@CheckReturnValue
    protected Builder build(Object object) {
        if (object instanceof Concept) {
            return concept((Concept) object);
        }
        else if (object instanceof Boolean) {
            return bool((boolean) object);
        }
        else if (object instanceof Collection) {
            return collection((Collection<?>) object);
        }
        else if (object instanceof AnswerGroup<?>) {
            return answerGroup((AnswerGroup<?>) object);
        }
        else if (object instanceof ConceptList) {
            return conceptList((ConceptList) object);
        }
        else if (object instanceof ConceptMap) {
            return conceptMap((ConceptMap) object);
        }
        else if (object instanceof ConceptSet) {
            if (object instanceof ConceptSetMeasure) {
                return conceptSetMeasure((ConceptSetMeasure) object);
            }
            else {
                return conceptSet((ConceptSet) object);
            }
        }
        else if (object instanceof Numeric) {
            return value((Numeric) object);
        }
        else if (object instanceof Map) {
            return map((Map<?, ?>) object);
        }
        else {
            return object(object);
        }
    }
11324
public Message setObject(Object obj) {
        if(obj == null) return this;
        if(obj instanceof byte[])
            return setBuffer((byte[])obj);
        if(obj instanceof Buffer)
            return setBuffer((Buffer)obj);
        try {
            return setBuffer(Util.objectToByteBuffer(obj));
        }
        catch(Exception ex) {
            throw new IllegalArgumentException(ex);
        }
    }
616757
public Object set(int index, Object obj, State state) {
		stateList.set(index, Type.from(state));
		return super.set(index, obj);
	}
929972
public function initialize($object)
    {
        foreach ($this->initializers as $interface => $initializer) {
            if ($object instanceof $interface) {
                $initializer($object, $this);
            }
        }

        if ($object instanceof ShutdownInterface) {
            $this->shutdownServices [] = $object;
        }

        return $object;
    }
885980
public static Reflect onObject(Object object) {
      if (object == null) {
         return new Reflect(null, null);
      }
      return new Reflect(object, object.getClass());
   }
587429
private void remove(Class<?> type, Object object)
    {
        final Set<?> set = items.get(type);
        if (set != null)
        {
            set.remove(object);
        }
    }
135695
public Object setValue(final Object value) {
        final Object answer = this.value;
        this.value = value;
        return answer;
    }
773993
function(obj, options={}){
    if(_.isNull(this.returnType)){ return void 0; }
    options.reset = true;
    return this.set(obj, options);
  }
1284915
public void set(int index, T object) {
        synchronized (mLock) {
            if (mOriginalValues != null) {
                mOriginalValues.set(index, object);
            } else {
                mObjects.set(index, object);
            }
        }
        if (mNotifyOnChange) notifyDataSetChanged();
    }
1359868
public T set(T newValue) {
		final T obj = this.object;
		this.object = newValue;
		return obj;
	}
632174
private T setInitialValue() {
        T value = initialValue();
        Thread t = Thread.currentThread();
        ThreadLocalMap map = getMap(t);
        if (map != null)
            map.set(this, value);
        else
            createMap(t, value);
        return value;
    }
1356902
public function set($object, $data = null) : void
    {
        $hash = spl_object_hash($object);

        $this->objects[$hash] = $object;
        $this->data[$hash] = $data;
    }