Share via


Edits.Iterator Class

Definition

Access to the list of edits.

[Android.Runtime.Register("android/icu/text/Edits$Iterator", ApiSince=29, DoNotGenerateAcw=true)]
public sealed class Edits.Iterator : Java.Lang.Object
[<Android.Runtime.Register("android/icu/text/Edits$Iterator", ApiSince=29, DoNotGenerateAcw=true)>]
type Edits.Iterator = class
    inherit Object
Inheritance
Edits.Iterator
Attributes

Remarks

Access to the list of edits.

At any moment in time, an instance of this class points to a single edit: a "window" into a span of the source string and the corresponding span of the destination string. The source string span starts at #sourceIndex() and runs for #oldLength() chars; the destination string span starts at #destinationIndex() and runs for #newLength() chars.

The iterator can be moved between edits using the #next(), #findSourceIndex(int), and #findDestinationIndex(int) methods. Calling any of these methods mutates the iterator to make it point to the corresponding edit.

For more information, see the documentation for Edits.

Note: Although this class is called "Iterator", it does not implement java.util.Iterator.

Java documentation for android.icu.text.Edits.Iterator.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasChange

Returns whether the edit currently represented by the iterator is a change edit.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DestinationIndex()

The start index of the current span in the destination string; the span has length #newLength.

DestinationIndexFromSourceIndex(Int32)

Computes the destination index corresponding to the given source index.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
FindDestinationIndex(Int32)

Moves the iterator to the edit that contains the destination index.

FindSourceIndex(Int32)

Moves the iterator to the edit that contains the source index.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
NewLength()

The length of the current span in the destination string, which starts at #destinationIndex, or in the replacement string, which starts at #replacementIndex.

Next()

Advances the iterator to the next edit.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
OldLength()

The length of the current span in the source string, which starts at #sourceIndex.

ReplacementIndex()

The start index of the current span in the replacement string; the span has length #newLength.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SourceIndex()

The start index of the current span in the source string; the span has length #oldLength.

SourceIndexFromDestinationIndex(Int32)

Computes the source index corresponding to the given destination index.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to