congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Pair.getSecond
Code IndexAdd Tabnine to your IDE (free)

How to use
getSecond
method
in
rocks.inspectit.shared.all.util.Pair

Best Java code snippets using rocks.inspectit.shared.all.util.Pair.getSecond (Showing top 8 results out of 315)

origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = (prime * result) + ((getFirst() == null) ? 0 : getFirst().hashCode());
  result = (prime * result) + ((getSecond() == null) ? 0 : getSecond().hashCode());
  return result;
}
origin: inspectIT/inspectIT

  return false;
if (getSecond() == null) {
  if (other.getSecond() != null) {
    return false;
} else if (!getSecond().equals(other.getSecond())) {
  return false;
origin: inspectIT/inspectIT

/**
 * Sets the message based on the page contents.
 */
protected void setPageMessage() {
  if (thresholdBox.getText().isEmpty()) {
    setMessage("Threshold must not be empty!", ERROR);
    return;
  }
  if (timerangeSpinner.getText().isEmpty()) {
    setMessage("Check interval must not be empty!", ERROR);
    return;
  }
  Pair<Integer, String> emailsErrorMessage = checkEmailText();
  if (null != emailsErrorMessage) {
    setMessage("The email address '" + emailsErrorMessage.getSecond() + "' in line " + emailsErrorMessage.getFirst() + " is not valid!", ERROR);
    return;
  }
  setMessage(DEFAULT_MESSAGE);
}
origin: inspectIT/inspectIT

@Test
private void musteReturnAnObjectWithAPairLongStringIfTheTimerDataHasHttpTimerData() {
  InvocationSequenceData invocationSequenceData = new InvocationSequenceData(new Timestamp(10L), 10L, 20L, 108L);
  HttpTimerData timerData = new HttpTimerData(new Timestamp(10), 10, 10, 108L);
  HttpInfo httpInfo = new HttpInfo("URI", "requestMethod", "headerValue");
  timerData.setHttpInfo(httpInfo);
  invocationSequenceData.setTimerData(timerData);
  Pair<Long, String> aggregationKey = (Pair<Long, String>) DiagnosisDataAggregator.getInstance().getAggregationKey(invocationSequenceData);
  assertThat("The string of the pair must be the sql data", aggregationKey.getSecond(), is(timerData.getHttpInfo().getUri()));
}
origin: inspectIT/inspectIT

  @SuppressWarnings("unchecked")
  @Override
  public void onRemoval(RemovalNotification<AbstractEUMSpanDetails, Pair<Boolean, AbstractEUMPointBuilder>> notification) {
    AbstractEUMSpanDetails element = notification.getKey();
    synchronized (element) {
      AbstractEUMPointBuilder builder = notification.getValue().getSecond();
      Long sessId = element.getOwningSpan().getSessionId();
      Long tabId = element.getOwningSpan().getTabId();
      Pair<Long, Long> plrSessionTabId = new Pair<Long, Long>(sessId, tabId);
      missingSessionInfosMap.remove(sessId, element);
      missingPageLoadRequestsMap.remove(plrSessionTabId, element);
      // Force a write even if data is still missing in case of an cache
      // eviction because of the timeout
      if (notification.getCause() != RemovalCause.EXPLICIT) {
        PageLoadRequest plr = pageLoadRequestCache.getIfPresent(plrSessionTabId);
        UserSessionInfo sessionInfo = sessionInfoCache.getIfPresent(sessId);
        dataPointsToWrite.addAll(builder.build(sessionInfo, plr, element));
      }
    }
  }
}).build();
origin: inspectIT/inspectIT

if (pair != null) {
  @SuppressWarnings("rawtypes")
  AbstractEUMPointBuilder responsibleBuilder = pair.getSecond();
  boolean isBrowserInfoCaptured = pair.getFirst();
origin: inspectIT/inspectIT

@Test
private void musteReturnAnObjectWithAPairLongStringIfTheTimerDataHasSqlData() {
  InvocationSequenceData invocationSequenceData = new InvocationSequenceData(new Timestamp(10L), 10L, 20L, 108L);
  SqlStatementData sqlStatementData = new SqlStatementData(new Timestamp(10), 10, 10, 108L);
  sqlStatementData.setCount(1);
  sqlStatementData.setSql("blahblahblah");
  invocationSequenceData.setSqlStatementData(sqlStatementData);
  TimerData timerData = new TimerData();
  invocationSequenceData.setTimerData(timerData);
  Pair<Long, String> aggregationKey = (Pair<Long, String>) DiagnosisDataAggregator.getInstance().getAggregationKey(invocationSequenceData);
  assertThat("The string of the pair must be the sql data", aggregationKey.getSecond(), is(sqlStatementData.getSql()));
}
origin: inspectIT/inspectIT

if (serviceStatus == ExternalServiceStatus.CONNECTED) {
  serviceEntry.getValue().getFirst().setImage(InspectIT.getDefault().getImage(InspectITImages.IMG_RECORD_GREEN));
  serviceEntry.getValue().getSecond().setText("Connected");
} else if (serviceStatus == ExternalServiceStatus.DISCONNECTED) {
  serviceEntry.getValue().getFirst().setImage(InspectIT.getDefault().getImage(InspectITImages.IMG_RECORD));
  serviceEntry.getValue().getSecond().setText("Disconnected");
} else if (serviceStatus == ExternalServiceStatus.DISABLED) {
  serviceEntry.getValue().getFirst().setImage(InspectIT.getDefault().getImage(InspectITImages.IMG_RECORD_GRAY));
  serviceEntry.getValue().getSecond().setText("Disabled");
} else if (serviceStatus == ExternalServiceStatus.UNKNOWN) {
  serviceEntry.getValue().getFirst().setImage(InspectIT.getDefault().getImage(InspectITImages.IMG_RECORD_YELLOW));
  serviceEntry.getValue().getSecond().setText("Unknown status");
serviceEntry.getValue().getSecond().setText("");
rocks.inspectit.shared.all.utilPairgetSecond

Javadoc

Gets #second.

Popular methods of Pair

  • <init>
    Constructor.
  • getFirst
    Gets #first.

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • String (java.lang)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JPanel (javax.swing)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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