public ClusterBlockException(StreamInput in) throws IOException { super(in); int totalBlocks = in.readVInt(); Set<ClusterBlock> blocks = new HashSet<>(totalBlocks); for (int i = 0; i < totalBlocks;i++) { blocks.add(ClusterBlock.readClusterBlock(in)); } this.blocks = unmodifiableSet(blocks); }
private static Set<ClusterBlock> readBlockSet(StreamInput in) throws IOException { int totalBlocks = in.readVInt(); Set<ClusterBlock> blocks = new HashSet<>(totalBlocks); for (int i = 0; i < totalBlocks;i++) { blocks.add(ClusterBlock.readClusterBlock(in)); } return unmodifiableSet(blocks); }
public ClusterBlockException(StreamInput in) throws IOException { super(in); int totalBlocks = in.readVInt(); Set<ClusterBlock> blocks = new HashSet<>(totalBlocks); for (int i = 0; i < totalBlocks;i++) { blocks.add(ClusterBlock.readClusterBlock(in)); } this.blocks = unmodifiableSet(blocks); }
public ClusterBlockException(StreamInput in) throws IOException { super(in); int totalBlocks = in.readVInt(); Set<ClusterBlock> blocks = new HashSet<>(totalBlocks); for (int i = 0; i < totalBlocks;i++) { blocks.add(ClusterBlock.readClusterBlock(in)); } this.blocks = unmodifiableSet(blocks); }
private static Set<ClusterBlock> readBlockSet(StreamInput in) throws IOException { int totalBlocks = in.readVInt(); Set<ClusterBlock> blocks = new HashSet<>(totalBlocks); for (int i = 0; i < totalBlocks;i++) { blocks.add(ClusterBlock.readClusterBlock(in)); } return unmodifiableSet(blocks); }
private static Set<ClusterBlock> readBlockSet(StreamInput in) throws IOException { int totalBlocks = in.readVInt(); Set<ClusterBlock> blocks = new HashSet<>(totalBlocks); for (int i = 0; i < totalBlocks;i++) { blocks.add(ClusterBlock.readClusterBlock(in)); } return unmodifiableSet(blocks); }
private static Set<ClusterBlock> readBlockSet(StreamInput in) throws IOException { int totalBlocks = in.readVInt(); Set<ClusterBlock> blocks = new HashSet<>(totalBlocks); for (int i = 0; i < totalBlocks;i++) { blocks.add(ClusterBlock.readClusterBlock(in)); } return unmodifiableSet(blocks); }
public ClusterBlockException(StreamInput in) throws IOException { super(in); int totalBlocks = in.readVInt(); Set<ClusterBlock> blocks = new HashSet<>(totalBlocks); for (int i = 0; i < totalBlocks;i++) { blocks.add(ClusterBlock.readClusterBlock(in)); } this.blocks = unmodifiableSet(blocks); }
public ClusterBlockException(StreamInput in) throws IOException { super(in); int num = in.readVInt(); ImmutableSet.Builder<ClusterBlock> builder = ImmutableSet.builder(); for (int i = 0; i < num; i++) { builder.add(ClusterBlock.readClusterBlock(in)); } blocks = builder.build(); }
private static ImmutableSet<ClusterBlock> readBlockSet(StreamInput in) throws IOException { ImmutableSet.Builder<ClusterBlock> builder = ImmutableSet.builder(); int size = in.readVInt(); for (int i = 0; i < size; i++) { builder.add(ClusterBlock.readClusterBlock(in)); } return builder.build(); }