Show / Hide Table of Contents

    Interface IStack<T>

    The interface describing the operations of a LIFO stack data structure.

    Inherited Members
    IDirectedCollectionValue<T>.Backwards()
    IDirectedCollectionValue<T>.FindLast(Func<T, Boolean>, T)
    ICollectionValue<T>.ListenableEvents
    ICollectionValue<T>.ActiveEvents
    ICollectionValue<T>.CollectionChanged
    ICollectionValue<T>.CollectionCleared
    ICollectionValue<T>.ItemsAdded
    ICollectionValue<T>.ItemInserted
    ICollectionValue<T>.ItemsRemoved
    ICollectionValue<T>.ItemRemovedAt
    ICollectionValue<T>.IsEmpty
    ICollectionValue<T>.Count
    ICollectionValue<T>.CountSpeed
    ICollectionValue<T>.CopyTo(T[], Int32)
    ICollectionValue<T>.ToArray()
    ICollectionValue<T>.Apply(Action<T>)
    ICollectionValue<T>.Exists(Func<T, Boolean>)
    ICollectionValue<T>.Find(Func<T, Boolean>, T)
    ICollectionValue<T>.All(Func<T, Boolean>)
    ICollectionValue<T>.Choose()
    ICollectionValue<T>.Filter(Func<T, Boolean>)
    IShowable.Show(System.Text.StringBuilder, Int32, IFormatProvider)
    IDirectedEnumerable<T>.Direction
    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public interface IStack<T> : IDirectedCollectionValue<T>, ICollectionValue<T>, IShowable, IFormattable, IDirectedEnumerable<T>, System.Collections.Generic.IEnumerable<T>
    Type Parameters
    Name Description
    T

    The item type

    Properties

    | Improve this Doc View Source

    AllowsDuplicates

    Declaration
    bool AllowsDuplicates { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Item[Int32]

    Get the

    index
    'th element of the stack. The bottom of the stack has index 0.

    Declaration
    T this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    T

    Methods

    | Improve this Doc View Source

    Pop()

    Pop the item at the top of the stack from the stack.

    Declaration
    T Pop()
    Returns
    Type Description
    T

    The popped item.

    | Improve this Doc View Source

    Push(T)

    Push an item to the top of the stack.

    Declaration
    void Push(T item)
    Parameters
    Type Name Description
    T item

    The item

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)