public StaleRevisionLockException(CDORevisionKey[] staleRevisions) { CheckUtil.checkArg(staleRevisions, "staleRevisions"); this.staleRevisions = staleRevisions; }
public static RuntimeException wrap(Exception exception) { if (exception instanceof RuntimeException) { return (RuntimeException)exception; } return new WrappedException(exception); }
public void changeContext(CONTEXT oldContext, CONTEXT newContext) { if (ObjectUtil.equals(context, oldContext)) { context = newContext; } }
public final boolean queryXRefs(IDBStoreAccessor accessor, String mainTableName, String mainTableWhere, QueryXRefsContext context, String idString) { // must never be called (a feature map is not associated with an EReference feature, so XRefs are nor supported // here) throw new ImplementationError("Should never be called!"); } }
public static String bytesToHex(byte[] bs) { if (bs == null) { return null; } return bytesToHex(bs, 0, bs.length); }
@Override protected byte[] convert(String value) { return HexUtil.hexToBytes(value); }
public synchronized void generate(byte[] uuid) { updateCurrentTime(); for (int i = 0; i < 16; i++) { uuid[i] = this.uuid[i]; } }
public static Exception unwrap(Exception exception) { if (exception instanceof WrappedException) { return ((WrappedException)exception).exception(); } return exception; } }
/** * @since 3.1 */ public static RuntimeException wrap(Exception exception, String message) { return new WrappedException(message, exception); }
public PreferenceHistory(OMPreference<String[]> preference) { CheckUtil.checkArg(preference, "preference"); this.preference = preference; }
@Override public int hashCode() { return ObjectUtil.hashCode(sessionID, viewID); }
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; }
/** * @since 4.2 */ public DefaultCDOMerger(ResolutionPreference resolutionPreference) { CheckUtil.checkArg(resolutionPreference, "resolutionPreference"); this.resolutionPreference = resolutionPreference; }
/** * @since 4.1 */ public void setNewLockStates(CDOLockState[] newLockStates) { CheckUtil.checkArg(newLockStates, "newLockStates"); this.newLockStates = newLockStates; }
public ByteArrayWrapper(byte[] data) { CheckUtil.checkArg(data, "data"); this.data = data; }