All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.redis.om.spring.tuple.impl.PairImpl Maven / Gradle / Ivy

package com.redis.om.spring.tuple.impl;

import com.redis.om.spring.tuple.Pair;

public final class PairImpl extends AbstractTuple implements Pair {

  public PairImpl(String[] labels, T0 e0, T1 e1) {
    super(PairImpl.class, labels, e0, e1);
  }

  @SuppressWarnings("unchecked")
  @Override
  public T0 getFirst() {
    return ((T0) values[0]);
  }

  @SuppressWarnings("unchecked")
  @Override
  public T1 getSecond() {
    return ((T1) values[1]);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy