docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Sequence

    Represents a sequence of tokens in a Template.

    Inheritance
    object
    Piece
    Sequence
    Implements
    IEquatable<Piece>
    IEquatable<Sequence>
    Inherited Members
    Piece.SequenceId
    Piece.Equals(Piece)
    Piece.Equals(object)
    Piece.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.InferenceEngine.Tokenization.PostProcessors.Templating
    Assembly: Unity.InferenceEngine.Tokenization.dll
    Syntax
    public class Sequence : Piece, IEquatable<Piece>, IEquatable<Sequence>

    Constructors

    Sequence(SequenceIdentifier, int)

    Initializes a new instance of the Sequence type.

    Declaration
    public Sequence(SequenceIdentifier identifier, int sequenceId)
    Parameters
    Type Name Description
    SequenceIdentifier identifier

    Identifies the sequence:

    • A for the primary sequence.
    • B for the secondary sequence.
    int sequenceId

    The type id of the sequence.

    Properties

    Identifier

    Identifies the sequence:

    • A for the primary sequence.
    • B for the secondary sequence.
    Declaration
    public SequenceIdentifier Identifier { get; }
    Property Value
    Type Description
    SequenceIdentifier

    Methods

    Equals(Sequence)

    Declaration
    public bool Equals(Sequence other)
    Parameters
    Type Name Description
    Sequence other
    Returns
    Type Description
    bool

    GetPieceHashCode()

    Gets the hash code of this Piece.

    Declaration
    protected override int GetPieceHashCode()
    Returns
    Type Description
    int

    The hash code of this Piece.

    Overrides
    Piece.GetPieceHashCode()

    PieceEquals(Piece)

    Tell whether this Piece equals the other one.

    Declaration
    protected override bool PieceEquals(Piece other)
    Parameters
    Type Name Description
    Piece other

    The other Piece to compare.

    Returns
    Type Description
    bool

    Whether this Piece equals the other one.

    Overrides
    Piece.PieceEquals(Piece)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    Piece.ToString()

    Implements

    IEquatable<T>
    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)