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

io.vertx.sqlclient.impl.RowBase Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR1
Show newest version
package io.vertx.sqlclient.impl;

import io.vertx.sqlclient.Tuple;

import java.util.Collection;

/**
 * Base class for rows.
 */
public abstract class RowBase extends ArrayTuple implements RowInternal {

  private boolean released;

  public RowBase(int len) {
    super(len);
  }

  public RowBase(Collection c) {
    super(c);
  }

  public RowBase(Tuple tuple) {
    super(tuple);
  }

  @Override
  public void release() {
    released = true;
  }

  @Override
  public boolean tryRecycle() {
    boolean ret = released;
    if (ret) {
      clear();
    }
    return ret;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy