Java Reference

Java Reference

Detailed Description

A permutation of integers encoded as a list of cycles, hence the "sparse"
format. The image of an element cycle[i] is cycle[(i + 1) % cycle_length].

Protobuf type

operations_research.sat.SparsePermutationProto

Definition at line 14 of file SparsePermutationProto.java.

Classes

class  Builder
 

Public Member Functions

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ()
 
.lang.Override java.util.List< java.lang.Integer > getSupportList ()
 
int getSupportCount ()
 
int getSupport (int index)
 
.lang.Override java.util.List< java.lang.Integer > getCycleSizesList ()
 repeated int32 cycle_sizes = 2; More...
 
int getCycleSizesCount ()
 repeated int32 cycle_sizes = 2; More...
 
int getCycleSizes (int index)
 repeated int32 cycle_sizes = 2; More...
 
.lang.Override final boolean isInitialized ()
 
.lang.Override void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
.lang.Override int getSerializedSize ()
 
.lang.Override boolean equals (final java.lang.Object obj)
 
.lang.Override int hashCode ()
 
.lang.Override Builder newBuilderForType ()
 
.lang.Override Builder toBuilder ()
 
.lang.Override com.google.protobuf.Parser< SparsePermutationProtogetParserForType ()
 
.lang.Override com.google.ortools.sat.SparsePermutationProto getDefaultInstanceForType ()
 

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.sat.SparsePermutationProto parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SparsePermutationProto parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SparsePermutationProto parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SparsePermutationProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SparsePermutationProto parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SparsePermutationProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.sat.SparsePermutationProto parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.SparsePermutationProto parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.SparsePermutationProto parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.sat.SparsePermutationProto parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.sat.SparsePermutationProto parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.sat.SparsePermutationProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.sat.SparsePermutationProto prototype)
 
static com.google.ortools.sat.SparsePermutationProto getDefaultInstance ()
 
static com.google.protobuf.Parser< SparsePermutationProtoparser ()
 

Static Public Attributes

static final int SUPPORT_FIELD_NUMBER = 1
 
static final int CYCLE_SIZES_FIELD_NUMBER = 2
 

Protected Member Functions

.lang.Override java.lang.Object newInstance (UnusedPrivateParameter unused)
 
.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ()
 
.lang.Override Builder newBuilderForType (com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
 

Member Function Documentation

◆ equals()

.lang.Override boolean equals ( final java.lang.Object  obj)

Definition at line 282 of file SparsePermutationProto.java.

◆ getCycleSizes()

int getCycleSizes ( int  index)

repeated int32 cycle_sizes = 2;

Parameters
indexThe index of the element to return.
Returns
The cycleSizes at the given index.

Implements SparsePermutationProtoOrBuilder.

Definition at line 205 of file SparsePermutationProto.java.

◆ getCycleSizesCount()

int getCycleSizesCount ( )

repeated int32 cycle_sizes = 2;

Returns
The count of cycleSizes.

Implements SparsePermutationProtoOrBuilder.

Definition at line 197 of file SparsePermutationProto.java.

◆ getCycleSizesList()

.lang.Override java.util.List<java.lang.Integer> getCycleSizesList ( )

repeated int32 cycle_sizes = 2;

Returns
A list containing the cycleSizes.

Implements SparsePermutationProtoOrBuilder.

Definition at line 190 of file SparsePermutationProto.java.

◆ getDefaultInstance()

static com.google.ortools.sat.SparsePermutationProto getDefaultInstance ( )
static

Definition at line 805 of file SparsePermutationProto.java.

◆ getDefaultInstanceForType()

.lang.Override com.google.ortools.sat.SparsePermutationProto getDefaultInstanceForType ( )

Definition at line 830 of file SparsePermutationProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ( )
static

Definition at line 127 of file SparsePermutationProto.java.

◆ getParserForType()

.lang.Override com.google.protobuf.Parser<SparsePermutationProto> getParserForType ( )

Definition at line 825 of file SparsePermutationProto.java.

◆ getSerializedSize()

.lang.Override int getSerializedSize ( )

Definition at line 243 of file SparsePermutationProto.java.

◆ getSupport()

int getSupport ( int  index)
Each cycle is listed one after the other in the support field.
The size of each cycle is given (in order) in the cycle_sizes field.

repeated int32 support = 1;

Parameters
indexThe index of the element to return.
Returns
The support at the given index.

Implements SparsePermutationProtoOrBuilder.

Definition at line 177 of file SparsePermutationProto.java.

◆ getSupportCount()

int getSupportCount ( )
Each cycle is listed one after the other in the support field.
The size of each cycle is given (in order) in the cycle_sizes field.

repeated int32 support = 1;

Returns
The count of support.

Implements SparsePermutationProtoOrBuilder.

Definition at line 164 of file SparsePermutationProto.java.

◆ getSupportList()

.lang.Override java.util.List<java.lang.Integer> getSupportList ( )
Each cycle is listed one after the other in the support field.
The size of each cycle is given (in order) in the cycle_sizes field.

repeated int32 support = 1;

Returns
A list containing the support.

Implements SparsePermutationProtoOrBuilder.

Definition at line 152 of file SparsePermutationProto.java.

◆ getUnknownFields()

.lang.Override final com.google.protobuf.UnknownFieldSet getUnknownFields ( )

Definition at line 37 of file SparsePermutationProto.java.

◆ hashCode()

.lang.Override int hashCode ( )

Definition at line 300 of file SparsePermutationProto.java.

◆ internalGetFieldAccessorTable()

.lang.Override com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable ( )
protected

Definition at line 133 of file SparsePermutationProto.java.

◆ isInitialized()

.lang.Override final boolean isInitialized ( )

Definition at line 212 of file SparsePermutationProto.java.

◆ newBuilder() [1/2]

static Builder newBuilder ( )
static

Definition at line 391 of file SparsePermutationProto.java.

◆ newBuilder() [2/2]

static Builder newBuilder ( com.google.ortools.sat.SparsePermutationProto  prototype)
static

Definition at line 394 of file SparsePermutationProto.java.

◆ newBuilderForType() [1/2]

.lang.Override Builder newBuilderForType ( )

Definition at line 390 of file SparsePermutationProto.java.

◆ newBuilderForType() [2/2]

.lang.Override Builder newBuilderForType ( com.google.protobuf.GeneratedMessageV3.BuilderParent  parent)
protected

Definition at line 404 of file SparsePermutationProto.java.

◆ newInstance()

.lang.Override java.lang.Object newInstance ( UnusedPrivateParameter  unused)
protected

Definition at line 30 of file SparsePermutationProto.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.sat.SparsePermutationProto parseDelimitedFrom ( java.io.InputStream  input) throws java.io.IOException
static

Definition at line 363 of file SparsePermutationProto.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.sat.SparsePermutationProto parseDelimitedFrom ( java.io.InputStream  input,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws java.io.IOException
static

Definition at line 368 of file SparsePermutationProto.java.

◆ parseFrom() [1/10]

static com.google.ortools.sat.SparsePermutationProto parseFrom ( byte[]  data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 341 of file SparsePermutationProto.java.

◆ parseFrom() [2/10]

static com.google.ortools.sat.SparsePermutationProto parseFrom ( byte[]  data,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 345 of file SparsePermutationProto.java.

◆ parseFrom() [3/10]

static com.google.ortools.sat.SparsePermutationProto parseFrom ( com.google.protobuf.ByteString  data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 330 of file SparsePermutationProto.java.

◆ parseFrom() [4/10]

static com.google.ortools.sat.SparsePermutationProto parseFrom ( com.google.protobuf.ByteString  data,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 335 of file SparsePermutationProto.java.

◆ parseFrom() [5/10]

static com.google.ortools.sat.SparsePermutationProto parseFrom ( com.google.protobuf.CodedInputStream  input) throws java.io.IOException
static

Definition at line 375 of file SparsePermutationProto.java.

◆ parseFrom() [6/10]

static com.google.ortools.sat.SparsePermutationProto parseFrom ( com.google.protobuf.CodedInputStream  input,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws java.io.IOException
static

Definition at line 381 of file SparsePermutationProto.java.

◆ parseFrom() [7/10]

static com.google.ortools.sat.SparsePermutationProto parseFrom ( java.io.InputStream  input) throws java.io.IOException
static

Definition at line 351 of file SparsePermutationProto.java.

◆ parseFrom() [8/10]

static com.google.ortools.sat.SparsePermutationProto parseFrom ( java.io.InputStream  input,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws java.io.IOException
static

Definition at line 356 of file SparsePermutationProto.java.

◆ parseFrom() [9/10]

static com.google.ortools.sat.SparsePermutationProto parseFrom ( java.nio.ByteBuffer  data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 319 of file SparsePermutationProto.java.

◆ parseFrom() [10/10]

static com.google.ortools.sat.SparsePermutationProto parseFrom ( java.nio.ByteBuffer  data,
com.google.protobuf.ExtensionRegistryLite  extensionRegistry 
) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 324 of file SparsePermutationProto.java.

◆ parser()

static com.google.protobuf.Parser<SparsePermutationProto> parser ( )
static

Definition at line 820 of file SparsePermutationProto.java.

◆ toBuilder()

.lang.Override Builder toBuilder ( )

Definition at line 398 of file SparsePermutationProto.java.

◆ writeTo()

.lang.Override void writeTo ( com.google.protobuf.CodedOutputStream  output) throws java.io.IOException

Definition at line 222 of file SparsePermutationProto.java.

Member Data Documentation

◆ CYCLE_SIZES_FIELD_NUMBER

final int CYCLE_SIZES_FIELD_NUMBER = 2
static

Definition at line 182 of file SparsePermutationProto.java.

◆ SUPPORT_FIELD_NUMBER

final int SUPPORT_FIELD_NUMBER = 1
static

Definition at line 139 of file SparsePermutationProto.java.


The documentation for this class was generated from the following file: