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

com.redis.om.spring.tuple.Quindecuple Maven / Gradle / Ivy

package com.redis.om.spring.tuple;

import com.redis.om.spring.tuple.accessor.EighthAccessor;
import com.redis.om.spring.tuple.accessor.EleventhAccessor;
import com.redis.om.spring.tuple.accessor.FifteenthAccessor;
import com.redis.om.spring.tuple.accessor.FifthAccessor;
import com.redis.om.spring.tuple.accessor.FirstAccessor;
import com.redis.om.spring.tuple.accessor.FourteenthAccessor;
import com.redis.om.spring.tuple.accessor.FourthAccessor;
import com.redis.om.spring.tuple.accessor.NinthAccessor;
import com.redis.om.spring.tuple.accessor.SecondAccessor;
import com.redis.om.spring.tuple.accessor.SeventhAccessor;
import com.redis.om.spring.tuple.accessor.SixthAccessor;
import com.redis.om.spring.tuple.accessor.TenthAccessor;
import com.redis.om.spring.tuple.accessor.ThirdAccessor;
import com.redis.om.spring.tuple.accessor.ThirteenthAccessor;
import com.redis.om.spring.tuple.accessor.TwelfthAccessor;

public interface Quindecuple extends Tuple {

  E1 getFirst();

  E2 getSecond();

  E3 getThird();

  E4 getFourth();

  E5 getFifth();

  E6 getSixth();

  E7 getSeventh();

  E8 getEighth();

  E9 getNinth();

  E10 getTenth();

  E11 getEleventh();

  E12 getTwelfth();

  E13 getThirteenth();

  E14 getFourteenth();

  E15 getFifteenth();

  @Override
  default int size() {
    return 15;
  }

  default Object get(int index) {
    switch (index) {
      case 0:
        return getFirst();
      case 1:
        return getSecond();
      case 2:
        return getThird();
      case 3:
        return getFourth();
      case 4:
        return getFifth();
      case 5:
        return getSixth();
      case 6:
        return getSeventh();
      case 7:
        return getEighth();
      case 8:
        return getNinth();
      case 9:
        return getTenth();
      case 10:
        return getEleventh();
      case 11:
        return getTwelfth();
      case 12:
        return getThirteenth();
      case 13:
        return getFourteenth();
      case 14:
        return getFifteenth();
      default:
        throw new IndexOutOfBoundsException(
            String.format("Index %d is outside bounds of tuple of degree %s", index, size()));
    }
  }

  static  FirstAccessor, E1> getFirstGetter() {
    return Quindecuple::getFirst;
  }

  static  SecondAccessor, E2> getSecondGetter() {
    return Quindecuple::getSecond;
  }

  static  ThirdAccessor, E3> getThirdGetter() {
    return Quindecuple::getThird;
  }

  static  FourthAccessor, E4> getFourthGetter() {
    return Quindecuple::getFourth;
  }

  static  FifthAccessor, E5> getFifthGetter() {
    return Quindecuple::getFifth;
  }

  static  SixthAccessor, E6> getSixthGetter() {
    return Quindecuple::getSixth;
  }

  static  SeventhAccessor, E7> getSeventhGetter() {
    return Quindecuple::getSeventh;
  }

  static  EighthAccessor, E8> getEighthGetter() {
    return Quindecuple::getEighth;
  }

  static  NinthAccessor, E9> getNinthGetter() {
    return Quindecuple::getNinth;
  }

  static  TenthAccessor, E10> getTenthGetter() {
    return Quindecuple::getTenth;
  }

  static  EleventhAccessor, E11> getEleventhGetter() {
    return Quindecuple::getEleventh;
  }

  static  TwelfthAccessor, E12> getTwelfthGetter() {
    return Quindecuple::getTwelfth;
  }

  static  ThirteenthAccessor, E13> getThirteenthGetter() {
    return Quindecuple::getThirteenth;
  }

  static  FourteenthAccessor, E14> getFourteenthGetter() {
    return Quindecuple::getFourteenth;
  }

  static  FifteenthAccessor, E15> getFifteenthGetter() {
    return Quindecuple::getFifteenth;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy