at least message shows on loadscreen

does the transition works?
This commit is contained in:
minjaesong
2019-11-27 15:53:09 +09:00
parent f715ba9a6e
commit c13aebd3ba
12 changed files with 70 additions and 38 deletions

View File

@@ -118,9 +118,9 @@ class CircularArray<T>(val size: Int, val overwriteOnOverflow: Boolean): Iterabl
}
/** Returns the youngest (last of the array) element */
fun getHeadElem(): T = if (isEmpty) throw EmptyStackException() else buffer[(head - 1).wrap()]
fun getHeadElem(): T? = if (isEmpty) null else buffer[(head - 1).wrap()]
/** Returns the oldest (first of the array) element */
fun getTailElem(): T = buffer[tail]
fun getTailElem(): T? = if (isEmpty) null else buffer[tail]
/**
* Relative-indexed get. Index of zero will return the head element.