Package ai.timefold.jpyinterpreter.types
Class PythonBytes
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.PythonBytes
- All Implemented Interfaces:
PythonLikeObject,PythonBytesLikeObject,PlanningImmutable
public class PythonBytes
extends AbstractPythonLikeObject
implements PythonBytesLikeObject, PlanningImmutable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PythonInteger[]static final PythonBytesfinal byte[]Fields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PythonStringfinal ByteCharSequencefinal PythonLikeTupleasString()center(PythonInteger fillWidth) center(PythonInteger fillWidth, PythonBytes fillCharacter) concat(PythonBytes other) containsSubsequence(PythonBytes subsequence) count(PythonInteger byteAsInt) count(PythonInteger byteAsInt, PythonInteger start) count(PythonInteger byteAsInt, PythonInteger start, PythonInteger end) count(PythonBytes bytes) count(PythonBytes bytes, PythonInteger start) count(PythonBytes bytes, PythonInteger start, PythonInteger end) countByte(byte query, int start, int end) decode()decode(PythonString charset) decode(PythonString charset, PythonString errorActionString) endsWith(PythonLikeTuple<PythonBytes> suffixes) endsWith(PythonLikeTuple<PythonBytes> suffixes, PythonInteger start) endsWith(PythonLikeTuple<PythonBytes> suffixes, PythonInteger start, PythonInteger end) endsWith(PythonBytes suffix) endsWith(PythonBytes suffix, PythonInteger start) endsWith(PythonBytes suffix, PythonInteger start, PythonInteger end) booleanexpandTabs(PythonInteger tabSize) find(PythonInteger query) find(PythonInteger query, PythonInteger start) find(PythonInteger query, PythonInteger start, PythonInteger end) find(PythonBytes query) find(PythonBytes query, PythonInteger start) find(PythonBytes query, PythonInteger start, PythonInteger end) static PythonBytesfromIntTuple(PythonLikeTuple tuple) getCharAt(PythonInteger position) getSubsequence(PythonSlice slice) inthashCode()booleanhasPrefix(byte[] prefixBytes, int start, int end) booleanhasSuffix(byte[] suffixBytes, int start, int end) index(PythonInteger query) index(PythonInteger query, PythonInteger start) index(PythonInteger query, PythonInteger start, PythonInteger end) index(PythonBytes query) index(PythonBytes query, PythonInteger start) index(PythonBytes query, PythonInteger start, PythonInteger end) interpolate(PythonLikeObject object) interpolate(PythonLikeDict dict) interpolate(PythonLikeTuple tuple) isAlpha()isAscii()isDigit()isLower()isSpace()isTitle()isUpper()join(PythonLikeObject iterable) leftJustify(PythonInteger fillWidth) leftJustify(PythonInteger fillWidth, PythonBytes fillCharacter) leftStrip(PythonBytes bytesToStrip) leftStrip(PythonNone ignored) lower()partition(PythonBytes sep) partition(PythonBytes sep, PythonInteger start) partition(PythonBytes sep, PythonInteger start, PythonInteger end) removePrefix(PythonBytes prefix) removeSuffix(PythonBytes suffix) repeat(PythonInteger times) replace(PythonBytesLikeObject old, PythonBytesLikeObject replacement) replace(PythonBytesLikeObject old, PythonBytesLikeObject replacement, BigInteger count) replace(PythonBytes old, PythonBytes replacement) replace(PythonBytes old, PythonBytes replacement, PythonInteger count) repr()rightFind(PythonInteger query) rightFind(PythonInteger query, PythonInteger start) rightFind(PythonInteger query, PythonInteger start, PythonInteger end) rightFind(PythonBytes query) rightFind(PythonBytes query, PythonInteger start) rightFind(PythonBytes query, PythonInteger start, PythonInteger end) rightIndex(PythonInteger query) rightIndex(PythonInteger query, PythonInteger start) rightIndex(PythonInteger query, PythonInteger start, PythonInteger end) rightIndex(PythonBytes query) rightIndex(PythonBytes query, PythonInteger start) rightIndex(PythonBytes query, PythonInteger start, PythonInteger end) rightJustify(PythonInteger fillWidth) rightJustify(PythonInteger fillWidth, PythonBytes fillCharacter) rightSplit(PythonBytes seperator) rightSplit(PythonBytes seperator, PythonInteger maxSplits) rightSplit(PythonNone ignored) rightSplit(PythonNone seperator, PythonInteger maxSplits) rightStrip(PythonBytes bytesToStrip) rightStrip(PythonNone ignored) split()split(PythonBytes seperator) split(PythonBytes seperator, PythonInteger maxSplits) split(PythonNone ignored) split(PythonNone seperator, PythonInteger maxSplits) splitLines(PythonBoolean keepEnds) startsWith(PythonLikeTuple<PythonBytes> prefixes) startsWith(PythonLikeTuple<PythonBytes> prefixes, PythonInteger start) startsWith(PythonLikeTuple<PythonBytes> prefixes, PythonInteger start, PythonInteger end) startsWith(PythonBytes prefix) startsWith(PythonBytes prefix, PythonInteger start) startsWith(PythonBytes prefix, PythonInteger start, PythonInteger end) strip()strip(PythonBytes bytesToStrip) strip(PythonNone ignored) swapCase()title()toString()translate(PythonBytes table) translate(PythonBytes table, PythonBytes delete) translate(PythonNone table) translate(PythonNone table, PythonBytes delete) upper()zfill(PythonInteger width) Methods inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
$deleteAttribute, $getAttributeOrNull, $getType, $setAttribute, getExtraAttributeMap, setAttributeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.types.PythonBytesLikeObject
asByteArrayMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$deleteAttribute, $getAttributeOrError, $getAttributeOrNull, $getGenericType, $getType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__getattribute__, $method$__ne__, $method$__repr__, $method$__setattr__, $setAttribute
-
Field Details
-
EMPTY
-
BYTE_TO_INT
-
value
public final byte[] value
-
-
Constructor Details
-
PythonBytes
public PythonBytes(byte[] value)
-
-
Method Details
-
asByteBuffer
- Specified by:
asByteBufferin interfacePythonBytesLikeObject
-
asCharSequence
-
asAsciiString
-
fromIntTuple
-
asIntTuple
-
getLength
-
getCharAt
-
getSubsequence
-
containsSubsequence
-
concat
-
repeat
-
getIterator
-
countByte
-
count
-
count
-
count
-
count
-
count
-
count
-
hasPrefix
public boolean hasPrefix(byte[] prefixBytes, int start, int end) -
hasSuffix
public boolean hasSuffix(byte[] suffixBytes, int start, int end) -
removePrefix
-
removeSuffix
-
decode
-
decode
-
decode
-
endsWith
-
endsWith
-
endsWith
-
endsWith
-
endsWith
-
endsWith
public PythonBoolean endsWith(PythonLikeTuple<PythonBytes> suffixes, PythonInteger start, PythonInteger end) -
find
-
find
-
find
-
index
-
index
-
index
-
find
-
find
-
find
-
index
-
index
-
index
-
interpolate
-
interpolate
-
interpolate
-
join
-
partition
-
partition
-
partition
-
replace
-
replace
public PythonBytes replace(PythonBytesLikeObject old, PythonBytesLikeObject replacement, BigInteger count) -
replace
-
replace
-
rightFind
-
rightFind
-
rightFind
-
rightIndex
-
rightIndex
-
rightIndex
-
rightFind
-
rightFind
-
rightFind
-
rightIndex
-
rightIndex
-
rightIndex
-
rightPartition
-
startsWith
-
startsWith
-
startsWith
-
startsWith
-
startsWith
-
startsWith
public PythonBoolean startsWith(PythonLikeTuple<PythonBytes> prefixes, PythonInteger start, PythonInteger end) -
translate
-
translate
-
translate
-
translate
-
center
-
center
-
leftJustify
-
leftJustify
-
rightJustify
-
rightJustify
-
strip
-
strip
-
strip
-
leftStrip
-
leftStrip
-
leftStrip
-
rightStrip
-
rightStrip
-
rightStrip
-
split
-
split
-
split
-
split
-
split
-
rightSplit
-
rightSplit
-
rightSplit
-
rightSplit
-
rightSplit
-
capitalize
-
expandTabs
-
expandTabs
-
isAlphaNumeric
-
isAlpha
-
isAscii
-
isDigit
-
isLower
-
isSpace
-
isTitle
-
isUpper
-
lower
-
splitLines
-
splitLines
-
swapCase
-
title
-
upper
-
zfill
-
asString
-
repr
-
$method$__str__
- Specified by:
$method$__str__in interfacePythonLikeObject
-
toString
- Overrides:
toStringin classAbstractPythonLikeObject
-
equals
-
hashCode
public int hashCode() -
$method$__hash__
- Specified by:
$method$__hash__in interfacePythonLikeObject
-