Package akka.dispatch.sysmsg
Class LatestFirstSystemMessageList
- java.lang.Object
-
- scala.AnyVal
-
- akka.dispatch.sysmsg.LatestFirstSystemMessageList
-
public class LatestFirstSystemMessageList extends scala.AnyValIndicates if the list is empty or not. This operation has constant cost.
-
-
Constructor Summary
Constructors Constructor Description LatestFirstSystemMessageList(SystemMessage head)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LatestFirstSystemMessageList$colon$colon(SystemMessage msg)Attaches a message to the current head of the list.static LatestFirstSystemMessageList$colon$colon$extension(LatestFirstSystemMessageList $this, SystemMessage msg)Attaches a message to the current head of the list.booleanequals(java.lang.Object x$1)static booleanequals$extension(LatestFirstSystemMessageList $this, java.lang.Object x$1)inthashCode()static inthashCode$extension(LatestFirstSystemMessageList $this)SystemMessagehead()booleanisEmpty()static booleanisEmpty$extension(LatestFirstSystemMessageList $this)Indicates if the list is empty or not.booleannonEmpty()Indicates if the list has at least one element or not.static booleannonEmpty$extension(LatestFirstSystemMessageList $this)Indicates if the list has at least one element or not.EarliestFirstSystemMessageListreverse()Reverses the list.static EarliestFirstSystemMessageListreverse$extension(LatestFirstSystemMessageList $this)Reverses the list.intsize()Indicates if the list is empty or not.static intsize$extension(LatestFirstSystemMessageList $this)Indicates if the list is empty or not.LatestFirstSystemMessageListtail()Gives back the list containing all the elements except the first.static LatestFirstSystemMessageListtail$extension(LatestFirstSystemMessageList $this)Gives back the list containing all the elements except the first.
-
-
-
Constructor Detail
-
LatestFirstSystemMessageList
public LatestFirstSystemMessageList(SystemMessage head)
-
-
Method Detail
-
isEmpty$extension
public static final boolean isEmpty$extension(LatestFirstSystemMessageList $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(LatestFirstSystemMessageList $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(LatestFirstSystemMessageList $this)
Indicates if the list is empty or not. This operation has constant cost.- Parameters:
$this- (undocumented)- Returns:
- (undocumented)
-
tail$extension
public static final LatestFirstSystemMessageList tail$extension(LatestFirstSystemMessageList $this)
Gives back the list containing all the elements except the first. This operation has constant cost.*Warning:* as the underlying list nodes (the
SystemMessageinstances) 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 EarliestFirstSystemMessageList reverse$extension(LatestFirstSystemMessageList $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:
EarliestFirstSystemMessageList- Parameters:
$this- (undocumented)- Returns:
- (undocumented)
-
$colon$colon$extension
public static final LatestFirstSystemMessageList $colon$colon$extension(LatestFirstSystemMessageList $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)
-
hashCode$extension
public static final int hashCode$extension(LatestFirstSystemMessageList $this)
-
equals$extension
public static final boolean equals$extension(LatestFirstSystemMessageList $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 LatestFirstSystemMessageList tail()
Gives back the list containing all the elements except the first. This operation has constant cost.*Warning:* as the underlying list nodes (the
SystemMessageinstances) 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 EarliestFirstSystemMessageList 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:
EarliestFirstSystemMessageList- Returns:
- (undocumented)
-
$colon$colon
public final LatestFirstSystemMessageList $colon$colon(SystemMessage msg)
Attaches a message to the current head of the list. This operation has constant cost.- Parameters:
msg- (undocumented)- Returns:
- (undocumented)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Overrides:
equalsin classjava.lang.Object
-
-