Class EarliestFirstSystemMessageList
- java.lang.Object
-
- scala.AnyVal
-
- akka.actor.typed.internal.EarliestFirstSystemMessageList
-
public class EarliestFirstSystemMessageList extends scala.AnyVal
Indicates if the list is empty or not. This operation has constant cost.
-
-
Constructor Summary
Constructors Constructor Description EarliestFirstSystemMessageList(SystemMessage head)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EarliestFirstSystemMessageList
$colon$colon(SystemMessage msg)
Attaches a message to the current head of the list.static EarliestFirstSystemMessageList
$colon$colon$extension(EarliestFirstSystemMessageList $this, SystemMessage msg)
Attaches a message to the current head of the list.boolean
equals(java.lang.Object x$1)
static boolean
equals$extension(EarliestFirstSystemMessageList $this, java.lang.Object x$1)
int
hashCode()
static int
hashCode$extension(EarliestFirstSystemMessageList $this)
SystemMessage
head()
boolean
isEmpty()
static boolean
isEmpty$extension(EarliestFirstSystemMessageList $this)
Indicates if the list is empty or not.boolean
nonEmpty()
Indicates if the list has at least one element or not.static boolean
nonEmpty$extension(EarliestFirstSystemMessageList $this)
Indicates if the list has at least one element or not.LatestFirstSystemMessageList
reverse()
Reverses the list.static LatestFirstSystemMessageList
reverse$extension(EarliestFirstSystemMessageList $this)
Reverses the list.EarliestFirstSystemMessageList
reversePrepend(LatestFirstSystemMessageList other)
Prepends a list in a reversed order to the head of this list.static EarliestFirstSystemMessageList
reversePrepend$extension(EarliestFirstSystemMessageList $this, LatestFirstSystemMessageList other)
Prepends a list in a reversed order to the head of this list.int
size()
Indicates if the list is empty or not.static int
size$extension(EarliestFirstSystemMessageList $this)
Indicates if the list is empty or not.EarliestFirstSystemMessageList
tail()
Gives back the list containing all the elements except the first.static EarliestFirstSystemMessageList
tail$extension(EarliestFirstSystemMessageList $this)
Gives back the list containing all the elements except the first.
-
-
-
Constructor Detail
-
EarliestFirstSystemMessageList
public EarliestFirstSystemMessageList(SystemMessage head)
-
-
Method Detail
-
isEmpty$extension
public static final boolean isEmpty$extension(EarliestFirstSystemMessageList $this)
Indicates if the list is empty or not. This operation has constant cost.- Parameters:
$this
- (undocumented)- Returns:
- (undocumented)
-
nonEmpty$extension
public static final boolean nonEmpty$extension(EarliestFirstSystemMessageList $this)
Indicates if the list has at least one element or not. This operation has constant cost.- Parameters:
$this
- (undocumented)- Returns:
- (undocumented)
-
size$extension
public static final int size$extension(EarliestFirstSystemMessageList $this)
Indicates if the list is empty or not. This operation has constant cost.- Parameters:
$this
- (undocumented)- Returns:
- (undocumented)
-
tail$extension
public static final EarliestFirstSystemMessageList tail$extension(EarliestFirstSystemMessageList $this)
Gives back the list containing all the elements except the first. This operation has constant cost.*Warning:* as the underlying list nodes (the
SystemMessage
instances) are mutable, care should be taken when passing the tail to other methods.SystemMessage.unlink()
should be called on the head if one wants to detach the tail permanently.- Parameters:
$this
- (undocumented)- Returns:
- (undocumented)
-
reverse$extension
public static final LatestFirstSystemMessageList reverse$extension(EarliestFirstSystemMessageList $this)
Reverses the list. This operation mutates the underlying list. The cost of the call to reverse is linear in the number of elements.The type of the returned list is of the opposite order:
LatestFirstSystemMessageList
- Parameters:
$this
- (undocumented)- Returns:
- (undocumented)
-
$colon$colon$extension
public static final EarliestFirstSystemMessageList $colon$colon$extension(EarliestFirstSystemMessageList $this, SystemMessage msg)
Attaches a message to the current head of the list. This operation has constant cost.- Parameters:
$this
- (undocumented)msg
- (undocumented)- Returns:
- (undocumented)
-
reversePrepend$extension
public static final EarliestFirstSystemMessageList reversePrepend$extension(EarliestFirstSystemMessageList $this, LatestFirstSystemMessageList other)
Prepends a list in a reversed order to the head of this list. The prepended list will be reversed during the process.Example: (3, 4, 5) reversePrepend (2, 1, 0) == (0, 1, 2, 3, 4, 5)
The cost of this operation is linear in the size of the list that is to be prepended.
- Parameters:
$this
- (undocumented)other
- (undocumented)- Returns:
- (undocumented)
-
hashCode$extension
public static final int hashCode$extension(EarliestFirstSystemMessageList $this)
-
equals$extension
public static final boolean equals$extension(EarliestFirstSystemMessageList $this, java.lang.Object x$1)
-
head
public SystemMessage head()
-
isEmpty
public final boolean isEmpty()
-
nonEmpty
public final boolean nonEmpty()
Indicates if the list has at least one element or not. This operation has constant cost.- Returns:
- (undocumented)
-
size
public final int size()
Indicates if the list is empty or not. This operation has constant cost.- Returns:
- (undocumented)
-
tail
public final EarliestFirstSystemMessageList tail()
Gives back the list containing all the elements except the first. This operation has constant cost.*Warning:* as the underlying list nodes (the
SystemMessage
instances) are mutable, care should be taken when passing the tail to other methods.SystemMessage.unlink()
should be called on the head if one wants to detach the tail permanently.- Returns:
- (undocumented)
-
reverse
public final LatestFirstSystemMessageList reverse()
Reverses the list. This operation mutates the underlying list. The cost of the call to reverse is linear in the number of elements.The type of the returned list is of the opposite order:
LatestFirstSystemMessageList
- Returns:
- (undocumented)
-
$colon$colon
public final EarliestFirstSystemMessageList $colon$colon(SystemMessage msg)
Attaches a message to the current head of the list. This operation has constant cost.- Parameters:
msg
- (undocumented)- Returns:
- (undocumented)
-
reversePrepend
public final EarliestFirstSystemMessageList reversePrepend(LatestFirstSystemMessageList other)
Prepends a list in a reversed order to the head of this list. The prepended list will be reversed during the process.Example: (3, 4, 5) reversePrepend (2, 1, 0) == (0, 1, 2, 3, 4, 5)
The cost of this operation is linear in the size of the list that is to be prepended.
- Parameters:
other
- (undocumented)- Returns:
- (undocumented)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Overrides:
equals
in classjava.lang.Object
-
-