Spliterators.AbstractSpliterator.InterfaceConsts.Immutable 字段

定义

注意

This constant will be removed in the future version. Use Java.Util.SpliteratorCharacteristics enum directly instead of this field.

特征值表示无法对元素源进行结构修改;也就是说,无法添加、替换或删除元素,因此在遍历期间无法发生此类更改。

[Android.Runtime.Register("IMMUTABLE", ApiSince=24)]
[System.Obsolete("This constant will be removed in the future version. Use Java.Util.SpliteratorCharacteristics enum directly instead of this field.", true)]
public const Java.Util.SpliteratorCharacteristics Immutable = 1024;
[<Android.Runtime.Register("IMMUTABLE", ApiSince=24)>]
[<System.Obsolete("This constant will be removed in the future version. Use Java.Util.SpliteratorCharacteristics enum directly instead of this field.", true)>]
val mutable Immutable : Java.Util.SpliteratorCharacteristics

字段值

Value = 1024
属性

注解

特征值表示无法对元素源进行结构修改;也就是说,无法添加、替换或删除元素,因此在遍历期间无法发生此类更改。 不报告 IMMUTABLECONCURRENT 预期有记录的策略(例如引发 ConcurrentModificationException)的拆分器,涉及遍历期间检测到的结构干扰。

Java文档java.util.Spliterator.IMMUTABLE

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于