/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (area != null ? area.hashCode() : 0); hash = 83 * hash + (service != null ? service.hashCode() : 0); hash = 83 * hash + (version != null ? version.hashCode() : 0); return hash; }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (address != null ? address.hashCode() : 0); hash = 83 * hash + (data != null ? data.hashCode() : 0); hash = 83 * hash + (checksum != null ? checksum.hashCode() : 0); return hash; }
@Override public UShort getServiceNumber() { return new UShort(0); }
public UIntegerList getMissingIndexes() { UIntegerList missingIndexes = new UIntegerList(); long nOfChunks = numberOfChunks.getValue(); for (int i = 0; i < nOfChunks; i++) { if (receivedChunks.get(i) == null) { missingIndexes.add(new UInteger()); } } return missingIndexes; }
/** * Constructor. * @param hdr Source message. */ public BrokerKey(final MALMessageHeader hdr) { this.uri = hdr.getURITo().getValue(); this.session = hdr.getSession().getOrdinal(); this.sessionName = hdr.getSessionName().getValue(); }
public JMSBrokerBinding(URI uri, String localName, Blob authenticationId, QoSLevel[] expectedQos, UInteger priorityLevelNumber) { this.uri = uri; this.localName = localName; this.authenticationId = new Blob(JMSTransport.authId); this.expectedQos = expectedQos; this.priorityLevelNumber = priorityLevelNumber; }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (supportedLevels != null ? supportedLevels.hashCode() : 0); hash = 83 * hash + (QoSproperties != null ? QoSproperties.hashCode() : 0); hash = 83 * hash + (priorityLevels != null ? priorityLevels.hashCode() : 0); hash = 83 * hash + (serviceURI != null ? serviceURI.hashCode() : 0); hash = 83 * hash + (brokerURI != null ? brokerURI.hashCode() : 0); hash = 83 * hash + (brokerProviderObjInstId != null ? brokerProviderObjInstId.hashCode() : 0); return hash; }
@Override public URI getURI() { return new URI(localURI); }
public Integer getOldestIndex(Long objId, double oldestTimeInMs) { // get index of oldestTimeInMs (or the next higher index, if oldestTimeInMs not in list) TimeList allTimes = timeSets.get(objId); if (allTimes == null) { return null; } int i = 0; for (; i < allTimes.size() && allTimes.get(i).getValue() < oldestTimeInMs; i++); return i; }
/** * The MAL TCPIP binding supports SEND, SUBMIT, REQUEST, INVOKE and * PROGRESS. PUBSUB is not supported. A MAL implementation layer has to * support PUBSUB itself. * * @param type * @return */ @Override public boolean isSupportedInteractionType(final InteractionType type) { return InteractionType.PUBSUB.getOrdinal() != type.getOrdinal(); }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (objType != null ? objType.hashCode() : 0); hash = 83 * hash + (domain != null ? domain.hashCode() : 0); hash = 83 * hash + (objInstIds != null ? objInstIds.hashCode() : 0); return hash; }
@Override public Element decodeElement(final Element element) throws IllegalArgumentException, MALException { return element.decode(this); }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (velocity != null ? velocity.hashCode() : 0); return hash; }
/** * Constructor. * * @param hdr Source message. */ public AddressKey(final MALMessageHeader hdr) { this.uri = hdr.getURITo().getValue(); this.domain = hdr.getDomain(); this.networkZone = hdr.getNetworkZone().getValue(); this.session = hdr.getSession().getOrdinal(); this.sessionName = hdr.getSessionName().getValue(); }
/** * Returns a hash code for this object. * @return a hash code value for this object. */ public int hashCode() { int hash = 7; hash = 83 * hash + (area != null ? area.hashCode() : 0); hash = 83 * hash + (service != null ? service.hashCode() : 0); hash = 83 * hash + (version != null ? version.hashCode() : 0); hash = 83 * hash + (number != null ? number.hashCode() : 0); return hash; }