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

me.hsgamer.hscore.ui.BaseDisplay Maven / Gradle / Ivy

There is a newer version: 4.3.29
Show newest version
package me.hsgamer.hscore.ui;

import org.jetbrains.annotations.NotNull;

import java.util.UUID;

/**
 * A simple implementation of {@link Display}
 *
 * @param  the type of {@link Holder}
 */
public abstract class BaseDisplay> implements Display {
  protected final UUID uuid;
  protected final H holder;

  /**
   * Create a new display
   *
   * @param uuid   the unique id
   * @param holder the holder
   */
  protected BaseDisplay(@NotNull UUID uuid, @NotNull H holder) {
    this.uuid = uuid;
    this.holder = holder;
  }

  @Override
  public @NotNull H getHolder() {
    return this.holder;
  }

  @Override
  public @NotNull UUID getUniqueId() {
    return this.uuid;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy