Tabnine Logo
SessionId.equals
Code IndexAdd Tabnine to your IDE (free)

How to use
equals
method
in
net.i2p.data.i2cp.SessionId

Best Java code snippets using net.i2p.data.i2cp.SessionId.equals (Showing top 5 results out of 315)

origin: i2p/i2p.i2p

/**
 *  Return the dest for the given ID
 *  @return dest or null if unknown
 *  @since 0.9.21
 */
public Destination getDestination(SessionId id) {
  if (id == null)
    return null;
  for (SessionParams sp : _sessions.values()) {
    if (id.equals(sp.sessionId))
      return sp.dest;
  }
  return null;
}

origin: i2p/i2p.i2p

/**
 *  Current client's config,
 *  will be null if session not found
 *  IS subsession aware.
 *  Returns null if id is null.
 *  @since 0.9.21 added id param
 */
public SessionConfig getConfig(SessionId id) {
  if (id == null)
    return null;
  for (SessionParams sp : _sessions.values()) {
    if (id.equals(sp.sessionId))
      return sp.config;
  }
  return null;
}

origin: i2p/i2p.i2p

/**
 *  Return the hash for the given ID
 *  @return hash or null if unknown
 *  @since 0.9.21
 */
public Hash getDestHash(SessionId id) {
  if (id == null)
    return null;
  for (Map.Entry<Hash, SessionParams> e : _sessions.entrySet()) {
    if (id.equals(e.getValue().sessionId))
      return e.getKey();
  }
  return null;
}
origin: i2p/i2p.i2p

for (Iterator<SessionParams> iter = _sessions.values().iterator(); iter.hasNext(); ) {
  SessionParams sp = iter.next();
  if (id.equals(sp.sessionId)) {
    if (_log.shouldLog(Log.INFO))
      _log.info("Destroying client session " + id);
origin: i2p/i2p.i2p

SessionId id = message.sessionId();
SessionId currId = _sessionId;
if (id == null || id.equals(currId) ||
  (currId == null && id != null && type == SessionStatusMessage.MESSAGE_TYPE) ||
  ((id == null || id.getSessionId() == 65535) &&
          id = sess.getSessionId();
          if (id != null) {
            if (id.equals(_sessionId)) {
net.i2p.data.i2cpSessionIdequals

Popular methods of SessionId

  • <init>
  • getSessionId
  • readBytes
  • setSessionId
  • writeBytes

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now