Top Description Inners Methods
net.bytebuddy.description.method

public Interface MethodList<T extends net.bytebuddy.description.method.MethodDescription>

extends FilterableList<T extends MethodDescription, MethodList<T extends MethodDescription>>
Known Direct Implementers
net.bytebuddy.description.method.MethodList.AbstractBase, net.bytebuddy.description.method.MethodList.Empty
Type Parameters
<T>
The type of method descriptions represented by this list.
Imports
net.bytebuddy.description.ByteCodeElement, net.bytebuddy.description.type.TypeDescription, net.bytebuddy.matcher.ElementMatcher, .FilterableList, net.bytebuddy.utility.ConstructorComparator, .GraalImageCode, .MethodComparator, java.lang.reflect.Constructor, .Method, java.util.ArrayList, .Arrays, .Collections, .List

Implementations represent a list of method descriptions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
MethodList.AbstractBase<
The type of method descriptions represented by this list.
S extends MethodDescription
>

A base implementation of a MethodList.

public static class
MethodList.Empty<
The type of parameter descriptions represented by this list.
S extends MethodDescription
>

An implementation of an empty method list.

public static class
MethodList.Explicit<
The type of method descriptions represented by this list.
S extends MethodDescription
>

A method list that is a wrapper for a given list of method descriptions.

public static class
MethodList.ForLoadedMethods

A method list implementation that returns all loaded byte code methods (methods and constructors) that are declared for a given type.

public static class
MethodList.ForTokens

A list of method descriptions for a list of detached tokens.

public static class

Method Summary

Modifier and TypeMethod and Description
public MethodList<MethodDescription.InDefinedShape>

Returns:

A list of methods in their defined shape.
asDefined
()

Returns this list of these method descriptions resolved to their defined shape.

public List<MethodDescription.SignatureToken>

Returns:

A list of signature tokens for this list of methods.
asSignatureTokenList
()

Returns a list of signature tokens for this list of methods.

public List<MethodDescription.SignatureToken>

Returns:

A list of signature tokens for this list of methods.
asSignatureTokenList
(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)

Returns a list of signature tokens for this list of methods.

public ByteCodeElement.Token.TokenList<MethodDescription.Token>

Returns:

The transformed token list.
asTokenList
(ElementMatcher<? super TypeDescription>
A matcher that indicates type substitution.
matcher
)

Transforms the list of method descriptions into a list of detached tokens.

Inherited from net.bytebuddy.matcher.FilterableList:
filtergetOnlysubList

Method Detail

asDefinedback to summary
public MethodList<MethodDescription.InDefinedShape> asDefined()

Returns this list of these method descriptions resolved to their defined shape.

Returns:MethodList<MethodDescription.InDefinedShape>

A list of methods in their defined shape.

asSignatureTokenListback to summary
public List<MethodDescription.SignatureToken> asSignatureTokenList()

Returns a list of signature tokens for this list of methods.

Returns:List<MethodDescription.SignatureToken>

A list of signature tokens for this list of methods.

asSignatureTokenListback to summary
public List<MethodDescription.SignatureToken> asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)

Returns a list of signature tokens for this list of methods.

Parameters
matcher:ElementMatcher<? super TypeDescription>

A matcher for resolving methods to net.bytebuddy.description.method.MethodDescription.Tokens.

typeDescription:TypeDescription

The type description to resolve the net.bytebuddy.description.method.MethodDescription.SignatureTokens to.

Returns:List<MethodDescription.SignatureToken>

A list of signature tokens for this list of methods.

asTokenListback to summary
public ByteCodeElement.Token.TokenList<MethodDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher)

Transforms the list of method descriptions into a list of detached tokens. All types that are matched by the provided target type matcher are substituted by net.bytebuddy.dynamic.TargetType.

Parameters
matcher:ElementMatcher<? super TypeDescription>

A matcher that indicates type substitution.

Returns:ByteCodeElement.Token.TokenList<MethodDescription.Token>

The transformed token list.

net.bytebuddy.description.method back to summary

public abstract Class MethodList.AbstractBase<S extends net.bytebuddy.description.method.MethodDescription>

extends FilterableList.AbstractBase<S extends MethodDescription, MethodList<S extends MethodDescription>>
implements MethodList<S extends MethodDescription>
Class Inheritance
All Implemented Interfaces
net.bytebuddy.description.method.MethodList, net.bytebuddy.matcher.FilterableList, java.util.List, java.util.SequencedCollection, java.util.Collection, java.lang.Iterable
Known Direct Subclasses
net.bytebuddy.description.method.MethodList.ForLoadedMethods, net.bytebuddy.description.method.MethodList.Explicit, net.bytebuddy.description.method.MethodList.ForTokens, net.bytebuddy.description.method.MethodList.TypeSubstituting, net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.MethodTokenList
Type Parameters
<S>
The type of method descriptions represented by this list.

A base implementation of a MethodList.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MethodList<MethodDescription.InDefinedShape>
asDefined()

Implements net.bytebuddy.description.method.MethodList.asDefined.

Returns this list of these method descriptions resolved to their defined shape.
public List<MethodDescription.SignatureToken>
asSignatureTokenList()

Implements net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Returns a list of signature tokens for this list of methods.
public List<MethodDescription.SignatureToken>
asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)

Implements net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Returns a list of signature tokens for this list of methods.
public ByteCodeElement.Token.TokenList<MethodDescription.Token>
asTokenList(ElementMatcher<? super TypeDescription>
A matcher that indicates type substitution.
matcher
)

Implements net.bytebuddy.description.method.MethodList.asTokenList.

Transforms the list of method descriptions into a list of detached tokens.
protected MethodList<S>
wrap(List<S>
The values to wrap in an instance of this list's type.
values
)

Implements abstract net.bytebuddy.matcher.FilterableList.AbstractBase.wrap.

Represents a list of values as an instance of this instance's list type.
Inherited from net.bytebuddy.matcher.FilterableList.AbstractBase:
filtergetOnlysubList

Constructor Detail

AbstractBaseback to summary
public AbstractBase()

Method Detail

asDefinedback to summary
public MethodList<MethodDescription.InDefinedShape> asDefined()

Implements net.bytebuddy.description.method.MethodList.asDefined.

Doc from net.bytebuddy.description.method.MethodList.asDefined.

Returns this list of these method descriptions resolved to their defined shape.

Returns:MethodList<MethodDescription.InDefinedShape>

A list of methods in their defined shape.

asSignatureTokenListback to summary
public List<MethodDescription.SignatureToken> asSignatureTokenList()

Implements net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Doc from net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Returns a list of signature tokens for this list of methods.

Returns:List<MethodDescription.SignatureToken>

A list of signature tokens for this list of methods.

asSignatureTokenListback to summary
public List<MethodDescription.SignatureToken> asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)

Implements net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Doc from net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Returns a list of signature tokens for this list of methods.

Parameters
matcher:ElementMatcher<? super TypeDescription>

A matcher for resolving methods to net.bytebuddy.description.method.MethodDescription.Tokens.

typeDescription:TypeDescription

The type description to resolve the net.bytebuddy.description.method.MethodDescription.SignatureTokens to.

Returns:List<MethodDescription.SignatureToken>

A list of signature tokens for this list of methods.

asTokenListback to summary
public ByteCodeElement.Token.TokenList<MethodDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher)

Implements net.bytebuddy.description.method.MethodList.asTokenList.

Doc from net.bytebuddy.description.method.MethodList.asTokenList.

Transforms the list of method descriptions into a list of detached tokens. All types that are matched by the provided target type matcher are substituted by net.bytebuddy.dynamic.TargetType.

Parameters
matcher:ElementMatcher<? super TypeDescription>

A matcher that indicates type substitution.

Returns:ByteCodeElement.Token.TokenList<MethodDescription.Token>

The transformed token list.

wrapback to summary
protected MethodList<S> wrap(List<S> values)

Implements abstract net.bytebuddy.matcher.FilterableList.AbstractBase.wrap.

Doc from net.bytebuddy.matcher.FilterableList.AbstractBase.wrap.

Represents a list of values as an instance of this instance's list type.

Parameters
values:List<S>

The values to wrap in an instance of this list's type.

Returns:MethodList<S>

A wrapped instance of the given values.

Annotations
@Override
net.bytebuddy.description.method back to summary

public Class MethodList.Empty<S extends net.bytebuddy.description.method.MethodDescription>

extends FilterableList.Empty<S extends MethodDescription, MethodList<S extends MethodDescription>>
implements MethodList<S extends MethodDescription>
Class Inheritance
All Implemented Interfaces
net.bytebuddy.description.method.MethodList, net.bytebuddy.matcher.FilterableList, java.util.List, java.util.SequencedCollection, java.util.Collection, java.lang.Iterable
Type Parameters
<S>
The type of parameter descriptions represented by this list.

An implementation of an empty method list.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MethodList<MethodDescription.InDefinedShape>
asDefined()

Implements net.bytebuddy.description.method.MethodList.asDefined.

Returns this list of these method descriptions resolved to their defined shape.
public List<MethodDescription.SignatureToken>
asSignatureTokenList()

Implements net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Returns a list of signature tokens for this list of methods.
public List<MethodDescription.SignatureToken>
asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)

Implements net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Returns a list of signature tokens for this list of methods.
public ByteCodeElement.Token.TokenList<MethodDescription.Token>
asTokenList(ElementMatcher<? super TypeDescription>
A matcher that indicates type substitution.
matcher
)

Implements net.bytebuddy.description.method.MethodList.asTokenList.

Transforms the list of method descriptions into a list of detached tokens.
Inherited from net.bytebuddy.matcher.FilterableList.Empty:
filtergetgetOnlysizesubList

Constructor Detail

Emptyback to summary
public Empty()

Method Detail

asDefinedback to summary
public MethodList<MethodDescription.InDefinedShape> asDefined()

Implements net.bytebuddy.description.method.MethodList.asDefined.

Doc from net.bytebuddy.description.method.MethodList.asDefined.

Returns this list of these method descriptions resolved to their defined shape.

Returns:MethodList<MethodDescription.InDefinedShape>

A list of methods in their defined shape.

Annotations
@SuppressWarnings:unchecked
asSignatureTokenListback to summary
public List<MethodDescription.SignatureToken> asSignatureTokenList()

Implements net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Doc from net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Returns a list of signature tokens for this list of methods.

Returns:List<MethodDescription.SignatureToken>

A list of signature tokens for this list of methods.

asSignatureTokenListback to summary
public List<MethodDescription.SignatureToken> asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)

Implements net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Doc from net.bytebuddy.description.method.MethodList.asSignatureTokenList.

Returns a list of signature tokens for this list of methods.

Parameters
matcher:ElementMatcher<? super TypeDescription>

A matcher for resolving methods to net.bytebuddy.description.method.MethodDescription.Tokens.

typeDescription:TypeDescription

The type description to resolve the net.bytebuddy.description.method.MethodDescription.SignatureTokens to.

Returns:List<MethodDescription.SignatureToken>

A list of signature tokens for this list of methods.

asTokenListback to summary
public ByteCodeElement.Token.TokenList<MethodDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher)

Implements net.bytebuddy.description.method.MethodList.asTokenList.

Doc from net.bytebuddy.description.method.MethodList.asTokenList.

Transforms the list of method descriptions into a list of detached tokens. All types that are matched by the provided target type matcher are substituted by net.bytebuddy.dynamic.TargetType.

Parameters
matcher:ElementMatcher<? super TypeDescription>

A matcher that indicates type substitution.

Returns:ByteCodeElement.Token.TokenList<MethodDescription.Token>

The transformed token list.

net.bytebuddy.description.method back to summary

public Class MethodList.Explicit<S extends net.bytebuddy.description.method.MethodDescription>

extends MethodList.AbstractBase<S extends MethodDescription>
Class Inheritance
Type Parameters
<S>
The type of method descriptions represented by this list.

A method list that is a wrapper for a given list of method descriptions.

Field Summary

Modifier and TypeField and Description
private final List<? extends S>
methodDescriptions

The list of methods that is represented by this method list.

Constructor Summary

AccessConstructor and Description
public
Explicit(S...
The underlying list of methods used for this method list.
methodDescription
)

Creates a new wrapper for a given list of methods.

public
Explicit(List<? extends S>
The underlying list of methods used for this method list.
methodDescriptions
)

Creates a new wrapper for a given list of methods.

Method Summary

Modifier and TypeMethod and Description
public S
get(int
index of the element to return
index
)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Returns the element at the specified position in this list.
public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Returns the number of elements in this list.
Inherited from net.bytebuddy.description.method.MethodList.AbstractBase:
asDefinedasSignatureTokenListasSignatureTokenListasTokenListwrap

Field Detail

methodDescriptionsback to summary
private final List<? extends S> methodDescriptions

The list of methods that is represented by this method list.

Constructor Detail

Explicitback to summary
public Explicit(S... methodDescription)

Creates a new wrapper for a given list of methods.

Parameters
methodDescription:S[]

The underlying list of methods used for this method list.

Annotations
@SuppressWarnings:unchecked
Explicitback to summary
public Explicit(List<? extends S> methodDescriptions)

Creates a new wrapper for a given list of methods.

Parameters
methodDescriptions:List<? extends S>

The underlying list of methods used for this method list.

Method Detail

getback to summary
public S get(int index)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Parameters
index:int

index of the element to return

Returns:S

the element at the specified position in this list

sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:int

the number of elements in this list

net.bytebuddy.description.method back to summary

public Class MethodList.ForLoadedMethods

extends MethodList.AbstractBase<MethodDescription.InDefinedShape>
Class Inheritance

A method list implementation that returns all loaded byte code methods (methods and constructors) that are declared for a given type.

Field Summary

Modifier and TypeField and Description
private final List<? extends Constructor<?>>
constructors

The loaded constructors that are represented by this method list.

private final List<? extends Method>
methods

The loaded methods that are represented by this method list.

Constructor Summary

AccessConstructor and Description
public
ForLoadedMethods(Class<?>
The type to be represented by this method list.
type
)

Creates a new list for a loaded type.

public
ForLoadedMethods(Constructor<?>[]
The constructors to be represented by the method list.
constructor
,
Method[]
The methods to be represented by the method list.
method
)

Creates a method list that represents the given constructors and methods in their given order.

public
ForLoadedMethods(List<? extends Constructor<?>>
The constructors to be represented by the method list.
constructors
,
List<? extends Method>
The methods to be represented by the method list.
methods
)

Creates a method list that represents the given constructors and methods in their given order.

Method Summary

Modifier and TypeMethod and Description
public MethodDescription.InDefinedShape
get(int
index of the element to return
index
)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Returns the element at the specified position in this list.
public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Returns the number of elements in this list.
Inherited from net.bytebuddy.description.method.MethodList.AbstractBase:
asDefinedasSignatureTokenListasSignatureTokenListasTokenListwrap

Field Detail

constructorsback to summary
private final List<? extends Constructor<?>> constructors

The loaded constructors that are represented by this method list.

methodsback to summary
private final List<? extends Method> methods

The loaded methods that are represented by this method list.

Constructor Detail

ForLoadedMethodsback to summary
public ForLoadedMethods(Class<?> type)

Creates a new list for a loaded type. Method descriptions are created on demand.

Parameters
type:Class<?>

The type to be represented by this method list.

ForLoadedMethodsback to summary
public ForLoadedMethods(Constructor<?>[] constructor, Method[] method)

Creates a method list that represents the given constructors and methods in their given order. The constructors are assigned the indices before the methods.

Parameters
constructor:Constructor<?>[]

The constructors to be represented by the method list.

method:Method[]

The methods to be represented by the method list.

ForLoadedMethodsback to summary
public ForLoadedMethods(List<? extends Constructor<?>> constructors, List<? extends Method> methods)

Creates a method list that represents the given constructors and methods in their given order. The constructors are assigned the indices before the methods.

Parameters
constructors:List<? extends Constructor<?>>

The constructors to be represented by the method list.

methods:List<? extends Method>

The methods to be represented by the method list.

Method Detail

getback to summary
public MethodDescription.InDefinedShape get(int index)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Parameters
index:int

index of the element to return

Returns:MethodDescription.InDefinedShape

the element at the specified position in this list

sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:int

the number of elements in this list

net.bytebuddy.description.method back to summary

public Class MethodList.ForTokens

extends MethodList.AbstractBase<MethodDescription.InDefinedShape>
Class Inheritance

A list of method descriptions for a list of detached tokens. For the returned method, each token is attached to its method representation.

Field Summary

Modifier and TypeField and Description
private final TypeDescription
declaringType

The method's declaring type.

private final List<? extends MethodDescription.Token>
tokens

The list of method tokens to represent.

Constructor Summary

AccessConstructor and Description
public
ForTokens(TypeDescription
The method's declaring type.
declaringType
,
MethodDescription.Token...
The list of method tokens to represent.
token
)

Creates a new list of method descriptions for a list of detached tokens.

public
ForTokens(TypeDescription
The method's declaring type.
declaringType
,
List<? extends MethodDescription.Token>
The list of method tokens to represent.
tokens
)

Creates a new list of method descriptions for a list of detached tokens.

Method Summary

Modifier and TypeMethod and Description
public MethodDescription.InDefinedShape
get(int
index of the element to return
index
)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Returns the element at the specified position in this list.
public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Returns the number of elements in this list.
Inherited from net.bytebuddy.description.method.MethodList.AbstractBase:
asDefinedasSignatureTokenListasSignatureTokenListasTokenListwrap

Field Detail

declaringTypeback to summary
private final TypeDescription declaringType

The method's declaring type.

tokensback to summary
private final List<? extends MethodDescription.Token> tokens

The list of method tokens to represent.

Constructor Detail

ForTokensback to summary
public ForTokens(TypeDescription declaringType, MethodDescription.Token... token)

Creates a new list of method descriptions for a list of detached tokens.

Parameters
declaringType:TypeDescription

The method's declaring type.

token:MethodDescription.Token[]

The list of method tokens to represent.

ForTokensback to summary
public ForTokens(TypeDescription declaringType, List<? extends MethodDescription.Token> tokens)

Creates a new list of method descriptions for a list of detached tokens.

Parameters
declaringType:TypeDescription

The method's declaring type.

tokens:List<? extends MethodDescription.Token>

The list of method tokens to represent.

Method Detail

getback to summary
public MethodDescription.InDefinedShape get(int index)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Parameters
index:int

index of the element to return

Returns:MethodDescription.InDefinedShape

the element at the specified position in this list

sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:int

the number of elements in this list

net.bytebuddy.description.method back to summary

public Class MethodList.TypeSubstituting

extends MethodList.AbstractBase<MethodDescription.InGenericShape>
Class Inheritance

A list of method descriptions that yields net.bytebuddy.description.method.MethodDescription.TypeSubstituting.

Field Summary

Modifier and TypeField and Description
protected final TypeDescription.Generic
declaringType

The methods' declaring type.

protected final List<? extends MethodDescription>
methodDescriptions

The list of method descriptions to represent.

protected final TypeDescription.Generic.Visitor<? extends TypeDescription.Generic>
visitor

The visitor to apply to each method description before returning it.

Constructor Summary

AccessConstructor and Description
public
TypeSubstituting(TypeDescription.Generic
The methods' declaring type.
declaringType
,
List<? extends MethodDescription>
The list of method descriptions to represent.
methodDescriptions
,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic>
The visitor to apply to each method description before returning it.
visitor
)

Creates a new type substituting method list.

Method Summary

Modifier and TypeMethod and Description
public MethodDescription.InGenericShape
get(int
index of the element to return
index
)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Returns the element at the specified position in this list.
public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Returns the number of elements in this list.
Inherited from net.bytebuddy.description.method.MethodList.AbstractBase:
asDefinedasSignatureTokenListasSignatureTokenListasTokenListwrap

Field Detail

declaringTypeback to summary
protected final TypeDescription.Generic declaringType

The methods' declaring type.

methodDescriptionsback to summary
protected final List<? extends MethodDescription> methodDescriptions

The list of method descriptions to represent.

visitorback to summary
protected final TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor

The visitor to apply to each method description before returning it.

Constructor Detail

TypeSubstitutingback to summary
public TypeSubstituting(TypeDescription.Generic declaringType, List<? extends MethodDescription> methodDescriptions, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)

Creates a new type substituting method list.

Parameters
declaringType:TypeDescription.Generic

The methods' declaring type.

methodDescriptions:List<? extends MethodDescription>

The list of method descriptions to represent.

visitor:TypeDescription.Generic.Visitor<? extends TypeDescription.Generic>

The visitor to apply to each method description before returning it.

Method Detail

getback to summary
public MethodDescription.InGenericShape get(int index)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Parameters
index:int

index of the element to return

Returns:MethodDescription.InGenericShape

the element at the specified position in this list

sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:int

the number of elements in this list