Class Slice
java.lang.Object
org.wpilib.math.autodiff.Slice
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classType tag used to designate an omitted argument of the slice. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Slice.NoneDesignates an omitted argument of the slice.intStart index (inclusive).intStep.intStop index (exclusive). -
Constructor Summary
ConstructorsConstructorDescriptionSlice()Constructs a Slice.Slice(int start) Constructs a slice.Slice(int start, int stop) Constructs a slice.Slice(int start, int stop, int step) Constructs a slice.Slice(int start, int stop, Slice.None step) Constructs a slice.Slice(int start, Slice.None stop) Constructs a slice.Slice(int start, Slice.None stop, int step) Constructs a slice.Slice(int start, Slice.None stop, Slice.None step) Constructs a slice.Slice(OptionalInt start, OptionalInt stop, OptionalInt step) Constructs a slice.Slice(Slice.None start) Constructs a slice.Slice(Slice.None start, int stop) Constructs a slice.Slice(Slice.None start, int stop, int step) Constructs a slice.Slice(Slice.None start, int stop, Slice.None step) Constructs a slice.Slice(Slice.None start, Slice.None stop) Constructs a slice.Slice(Slice.None start, Slice.None stop, int step) Constructs a slice.Slice(Slice.None start, Slice.None stop, Slice.None step) Constructs a slice. -
Method Summary
Modifier and TypeMethodDescriptionintadjust(int length) Adjusts start and end slice indices assuming a sequence of the specified length.
-
Field Details
-
__
Designates an omitted argument of the slice. -
start
Start index (inclusive). -
stop
Stop index (exclusive). -
step
Step.
-
-
Constructor Details
-
Slice
public Slice()Constructs a Slice. -
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).
-
Slice
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).step- Slice step.
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).step- Slice step.
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).step- Slice step.
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).step- Slice step.
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).step- Slice step.
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).step- Slice step.
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).step- Slice step.
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).step- Slice step.
-
Slice
Constructs a slice.- Parameters:
start- Slice start index (inclusive).stop- Slice stop index (exclusive).step- Slice step.
-
-
Method Details
-
adjust
Adjusts start and end slice indices assuming a sequence of the specified length.- Parameters:
length- The sequence length.- Returns:
- The slice length.
-