APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.jpackage.internal.pipeline

public final Class BinaryMatrix

extends Object
Class Inheritance
Imports
java.util.BitSet, .Iterator, .NoSuchElementException, .Objects, .Optional, .Spliterator, .Spliterators, java.util.stream.Stream, .StreamSupport

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
BinaryMatrix.ColumnIterator

Iterator over values of some column.

pack-priv static interface
private static record
private class
BinaryMatrix.RowIterator

Iterator over values of some row.

private abstract class
BinaryMatrix.SelectionIterator

Iterator over values of some selection.

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int
private final BitSet

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
BinaryMatrix(int dimension)

pack-priv
BinaryMatrix(int rows, int columns)

pack-priv
BinaryMatrix(int rows, int columns, BitSet values)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object obj)

Overrides java.lang.Object.equals.

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

pack-priv Stream<BinaryMatrix.Cursor>
getColumnAsStream(int column)

pack-priv int
pack-priv Iterator<BinaryMatrix.Cursor>
getColumnIterator(int column)

pack-priv Spliterator<BinaryMatrix.Cursor>
pack-priv Stream<BinaryMatrix.Cursor>
getRowAsStream(int row)

pack-priv int
pack-priv Iterator<BinaryMatrix.Cursor>
getRowIterator(int row)

pack-priv Spliterator<BinaryMatrix.Cursor>
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

pack-priv boolean
pack-priv boolean
isSet(int row, int column)

pack-priv boolean
private static int
requirePositiveInteger(int value, String message)

pack-priv void
set(int row, int column, boolean value)

pack-priv void
set(int row, int column)

private int
toIndex(int row, int column)

private static Stream<BinaryMatrix.Cursor>
pack-priv void
unset(int row, int column)

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

columnsback to summary
private final int columns
rowsback to summary
private final int rows
sizeback to summary
private final int size
valuesback to summary
private final BitSet values

Constructor Detail

BinaryMatrixback to summary
pack-priv BinaryMatrix(BinaryMatrix other)
BinaryMatrixback to summary
pack-priv BinaryMatrix(int dimension)
BinaryMatrixback to summary
pack-priv BinaryMatrix(int rows, int columns)
BinaryMatrixback to summary
pack-priv BinaryMatrix(int rows, int columns, BitSet values)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

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

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
getColumnAsStreamback to summary
pack-priv Stream<BinaryMatrix.Cursor> getColumnAsStream(int column)
getColumnCountback to summary
pack-priv int getColumnCount()
getColumnIteratorback to summary
pack-priv Iterator<BinaryMatrix.Cursor> getColumnIterator(int column)
getColumnSpliteratorback to summary
pack-priv Spliterator<BinaryMatrix.Cursor> getColumnSpliterator(int column)
getRowAsStreamback to summary
pack-priv Stream<BinaryMatrix.Cursor> getRowAsStream(int row)
getRowCountback to summary
pack-priv int getRowCount()
getRowIteratorback to summary
pack-priv Iterator<BinaryMatrix.Cursor> getRowIterator(int row)
getRowSpliteratorback to summary
pack-priv Spliterator<BinaryMatrix.Cursor> getRowSpliterator(int row)
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
isEmptyback to summary
pack-priv boolean isEmpty()
isSetback to summary
pack-priv boolean isSet(int row, int column)
isSquareback to summary
pack-priv boolean isSquare()
requirePositiveIntegerback to summary
private static int requirePositiveInteger(int value, String message)
setback to summary
pack-priv void set(int row, int column, boolean value)
setback to summary
pack-priv void set(int row, int column)
toIndexback to summary
private int toIndex(int row, int column)
toStreamback to summary
private static Stream<BinaryMatrix.Cursor> toStream(Spliterator<BinaryMatrix.Cursor> split)
unsetback to summary
pack-priv void unset(int row, int column)
jdk.jpackage.internal.pipeline back to summary

private Class BinaryMatrix.ColumnIterator

extends SelectionIterator
Class Inheritance

Iterator over values of some column.

Constructor Summary

AccessConstructor and Description
pack-priv
ColumnIterator(int column)

Method Summary

Modifier and TypeMethod and Description
protected int
Inherited from jdk.jpackage.internal.pipeline.BinaryMatrix.SelectionIterator:
hasNextnext

Constructor Detail

ColumnIteratorback to summary
pack-priv ColumnIterator(int column)

Method Detail

nextIndexback to summary
protected int nextIndex(int idx)

Implements abstract jdk.jpackage.internal.pipeline.BinaryMatrix.SelectionIterator.nextIndex.

Annotations
@Override
jdk.jpackage.internal.pipeline back to summary

pack-priv Interface BinaryMatrix.Cursor

Known Direct Implementers
jdk.jpackage.internal.pipeline.BinaryMatrix.CursorImpl

Method Summary

Modifier and TypeMethod and Description
public int
public int
row()

public boolean
public void
value(boolean value)

Method Detail

columnback to summary
public int column()
rowback to summary
public int row()
valueback to summary
public boolean value()
valueback to summary
public void value(boolean value)
jdk.jpackage.internal.pipeline back to summary

private final Record BinaryMatrix.CursorImpl

extends Record
implements Cursor
Class Inheritance
All Implemented Interfaces
jdk.jpackage.internal.pipeline.BinaryMatrix.Cursor
Record Components
index:int 
matrix:BinaryMatrix 

Field Summary

Modifier and TypeField and Description
private final int
index

Record Component accessed by index().

private final BinaryMatrix
matrix

Record Component accessed by matrix().

Constructor Summary

AccessConstructor and Description
pack-priv
CursorImpl(int index, BinaryMatrix matrix)

Method Summary

Modifier and TypeMethod and Description
public int
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

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

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public int
index()

Record Component getter of index.

public BinaryMatrix
matrix()

Record Component getter of matrix.

public int
public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public boolean
public void

Field Detail

indexback to summary
private final int index

Record Component accessed by index().

matrixback to summary
private final BinaryMatrix matrix

Record Component accessed by matrix().

Constructor Detail

CursorImplback to summary
pack-priv CursorImpl(int index, BinaryMatrix matrix)

Method Detail

columnback to summary
public int column()

Implements jdk.jpackage.internal.pipeline.BinaryMatrix.Cursor.column.

Annotations
@Override
equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

indexback to summary
public int index()

Record Component getter of index.

matrixback to summary
public BinaryMatrix matrix()

Record Component getter of matrix.

rowback to summary
public int row()

Implements jdk.jpackage.internal.pipeline.BinaryMatrix.Cursor.row.

Annotations
@Override
toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

valueback to summary
public boolean value()

Implements jdk.jpackage.internal.pipeline.BinaryMatrix.Cursor.value.

Annotations
@Override
valueback to summary
public void value(boolean value)

Implements jdk.jpackage.internal.pipeline.BinaryMatrix.Cursor.value.

Annotations
@Override
jdk.jpackage.internal.pipeline back to summary

private Class BinaryMatrix.RowIterator

extends SelectionIterator
Class Inheritance

Iterator over values of some row.

Constructor Summary

AccessConstructor and Description
pack-priv
RowIterator(int row)

Method Summary

Modifier and TypeMethod and Description
protected int
Inherited from jdk.jpackage.internal.pipeline.BinaryMatrix.SelectionIterator:
hasNextnext

Constructor Detail

RowIteratorback to summary
pack-priv RowIterator(int row)

Method Detail

nextIndexback to summary
protected int nextIndex(int idx)

Implements abstract jdk.jpackage.internal.pipeline.BinaryMatrix.SelectionIterator.nextIndex.

Annotations
@Override
jdk.jpackage.internal.pipeline back to summary

private abstract Class BinaryMatrix.SelectionIterator

extends Object
implements Iterator<BinaryMatrix.Cursor>
Class Inheritance
  • java.lang.Object
  • jdk.jpackage.internal.pipeline.BinaryMatrix.SelectionIterator
All Implemented Interfaces
java.util.Iterator
Known Direct Subclasses
jdk.jpackage.internal.pipeline.BinaryMatrix.ColumnIterator, jdk.jpackage.internal.pipeline.BinaryMatrix.RowIterator

Iterator over values of some selection.

Field Summary

Modifier and TypeField and Description
private int
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
SelectionIterator(int index, int limit)

Method Summary

Modifier and TypeMethod and Description
public final boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.

public final BinaryMatrix.Cursor
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.

protected abstract int
nextIndex(int idx)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
private int index
limitback to summary
private final int limit

Constructor Detail

SelectionIteratorback to summary
pack-priv SelectionIterator(int index, int limit)

Method Detail

hasNextback to summary
public final boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Annotations
@Override
nextback to summary
public final BinaryMatrix.Cursor next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Annotations
@Override
nextIndexback to summary
protected abstract int nextIndex(int idx)