/** * @since 4.2 */ public DefaultCDOMerger(ResolutionPreference resolutionPreference) { CheckUtil.checkArg(resolutionPreference, "resolutionPreference"); this.resolutionPreference = resolutionPreference; }
public ByteArrayWrapper(byte[] data) { CheckUtil.checkArg(data, "data"); this.data = data; }
/** * @since 4.1 */ public void setNewLockStates(CDOLockState[] newLockStates) { CheckUtil.checkArg(newLockStates, "newLockStates"); this.newLockStates = newLockStates; } }
public ID(int value) { CheckUtil.checkArg(value != INFO_FOLLOWS, "value"); this.value = value; }
public StaleRevisionLockException(CDORevisionKey[] staleRevisions) { CheckUtil.checkArg(staleRevisions, "staleRevisions"); this.staleRevisions = staleRevisions; }
public AbstractCDOIDByteArray(byte[] value) { CheckUtil.checkArg(value != null && value.length == 16, "Illegal UUID value"); this.value = value; }
public StaleRevisionLockException(CDORevisionKey[] staleRevisions) { CheckUtil.checkArg(staleRevisions, "staleRevisions"); this.staleRevisions = staleRevisions; }
public PreferenceHistory(OMPreference<String[]> preference) { CheckUtil.checkArg(preference, "preference"); this.preference = preference; }
public EventBus(String description, int numberOfWorkers, ExecutorServiceFactory executorServiceFactory) { CheckUtil.checkArg(description, "Description should be specified"); CheckUtil.checkArg(numberOfWorkers > 0, "Number of workers must be greater than zero"); this.description = description; this.numberOfWorkers = numberOfWorkers; this.executorServiceFactory = executorServiceFactory; }
public HandlerChangeRequest(EventBusProtocol protocol, short signalID, Object body) { super(protocol, signalID); CheckUtil.checkArg(body, "body"); this.body = body; }
protected CDOFeatureDeltaImpl(EStructuralFeature feature) { CheckUtil.checkArg(feature, "feature"); this.feature = feature; }
protected RevisionInfo(CDODataInput in, CDOBranchPoint requestedBranchPoint) throws IOException { CheckUtil.checkArg(requestedBranchPoint, "requestedBranchPoint"); id = in.readCDOID(); this.requestedBranchPoint = requestedBranchPoint; }
public void addListener(IListener listener) { CheckUtil.checkArg(listener, "listener"); //$NON-NLS-1$ listeners.add(listener); }
@Override public IEventBus receive(IMessage message) { CheckUtil.checkArg(message instanceof BaseMessage, "Accepts only BaseMessage instances"); receiveMessage((BaseMessage) message); return this; }
/*package*/ void registerAddressBook(Set<String> addresses) { CheckUtil.checkArg(addresses, "addresses"); for (String address : addresses) { if (remoteAddresses.add(address)) { getInfraStructure().registerHandler(address, this); } } }
public CommitIntegrityCheck(InternalCDOCommitContext commitContext, Style style) { transaction = commitContext.getTransaction(); CheckUtil.checkArg(style, "style"); this.style = style; newIDs = commitContext.getNewObjects().keySet(); dirtyIDs = commitContext.getDirtyObjects().keySet(); detachedIDs = commitContext.getDetachedObjects().keySet(); }
public void commitPrepare(IProgressMonitor progressMonitor) { CheckUtil.checkArg(progressMonitor, "progressMonitor"); //$NON-NLS-1$ progressMonitor.beginTask(Messages.getString("CDOXATransactionImpl.4"), 3); //$NON-NLS-1$ for (InternalCDOTransaction transaction : transactions) { InternalCDOCommitContext context = transaction.createCommitContext(); InternalCDOXACommitContext xaContext = createXACommitContext(context); xaContext.setState(CDOXAPhase1State.INSTANCE); activeContexts.put(transaction, xaContext); } }