Home Reference Source
public class | source

Bag

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

dictionary: *[]

public

Method Summary

Public Methods
public

add(element: *): *

public

contains(item: *): *

public

isEmpty(): *

public

unpack(): *

unpack the bag , and get all items

Public Constructors

public constructor() source

Public Members

public dictionary: *[] source

public nElement: number source

Public Methods

public add(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public contains(item: *): * source

Params:

NameTypeAttributeDescription
item *

Return:

*

public isEmpty(): * source

Return:

*

public unpack(): * source

unpack the bag , and get all items

Return:

*