HyCodeYourTale
classpublicPriority 3

CacheThreadMemory

com.hypixel.hytale.builtin.hytalegenerator.positionproviders.cached.CacheThreadMemory

0

Methods

0

Public Methods

3

Fields

1

Constructors

Constructors

public
CacheThreadMemory(int size)

Fields

Private/Package Fields (3)

package-privateLinkedList<Long> expirationList
package-privateMap<Long, Vector3d[]> sections
package-privateint size

Related Classes

Used By

Source Code

package com.hypixel.hytale.builtin.hytalegenerator.positionproviders.cached;

import com.hypixel.hytale.math.vector.Vector3d;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;

public class CacheThreadMemory {
   Map<Long, Vector3d[]> sections;
   LinkedList<Long> expirationList;
   int size;

   public CacheThreadMemory(int size) {
      if (size < 0) {
         throw new IllegalArgumentException();
      } else {
         this.sections = new HashMap<>(size);
         this.expirationList = new LinkedList<>();
         this.size = size;
      }
   }
}