Package ai.timefold.jpyinterpreter.types
Class PythonByteArray
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.PythonByteArray
- All Implemented Interfaces:
PythonLikeObject,PythonBytesLikeObject
-
Field Summary
FieldsFields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendByte(PythonInteger addedByte) final PythonStringfinal ByteCharSequencefinal PythonLikeTupleasString()center(PythonInteger fillWidth) center(PythonInteger fillWidth, PythonByteArray fillCharacter) clear()concat(PythonByteArray other) containsSubsequence(PythonByteArray subsequence) copy()count(PythonInteger byteAsInt) count(PythonInteger byteAsInt, PythonInteger start) count(PythonInteger byteAsInt, PythonInteger start, PythonInteger end) count(PythonByteArray bytes) count(PythonByteArray bytes, PythonInteger start) count(PythonByteArray bytes, PythonInteger start, PythonInteger end) countByte(byte query, int start, int end) decode()decode(PythonString charset) decode(PythonString charset, PythonString errorActionString) deleteIndex(PythonInteger index) deleteSlice(PythonSlice deletedSlice) endsWith(PythonLikeTuple<PythonByteArray> suffixes) endsWith(PythonLikeTuple<PythonByteArray> suffixes, PythonInteger start) endsWith(PythonLikeTuple<PythonByteArray> suffixes, PythonInteger start, PythonInteger end) endsWith(PythonByteArray suffix) endsWith(PythonByteArray suffix, PythonInteger start) endsWith(PythonByteArray suffix, PythonInteger start, PythonInteger end) booleanexpandTabs(PythonInteger tabSize) extend(PythonLikeObject iterable) find(PythonInteger query) find(PythonInteger query, PythonInteger start) find(PythonInteger query, PythonInteger start, PythonInteger end) find(PythonByteArray query) find(PythonByteArray query, PythonInteger start) find(PythonByteArray query, PythonInteger start, PythonInteger end) static PythonByteArrayfromIntTuple(PythonLikeTuple tuple) getCharAt(PythonInteger position) getSubsequence(PythonSlice slice) inthashCode()booleanhasPrefix(ByteBuffer prefixBytes, int start, int end) booleanhasSuffix(ByteBuffer suffixBytes, int start, int end) index(PythonInteger query) index(PythonInteger query, PythonInteger start) index(PythonInteger query, PythonInteger start, PythonInteger end) index(PythonByteArray query) index(PythonByteArray query, PythonInteger start) index(PythonByteArray query, PythonInteger start, PythonInteger end) inplaceAdd(PythonLikeObject iterable) inplaceRepeat(PythonLikeObject indexable) inplaceRepeat(PythonInteger index) insert(PythonInteger index, PythonInteger value) 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, PythonByteArray fillCharacter) leftStrip(PythonByteArray bytesToStrip) leftStrip(PythonNone ignored) lower()partition(PythonByteArray sep) partition(PythonByteArray sep, PythonInteger start) partition(PythonByteArray sep, PythonInteger start, PythonInteger end) pop()pop(PythonInteger index) remove(PythonInteger item) removePrefix(PythonByteArray prefix) removeSuffix(PythonByteArray suffix) repeat(PythonInteger times) replace(PythonByteArray old, PythonByteArray replacement) replace(PythonByteArray old, PythonByteArray replacement, PythonInteger count) replace(PythonBytesLikeObject old, PythonBytesLikeObject replacement) replace(PythonBytesLikeObject old, PythonBytesLikeObject replacement, BigInteger count) repr()reverse()rightFind(PythonInteger query) rightFind(PythonInteger query, PythonInteger start) rightFind(PythonInteger query, PythonInteger start, PythonInteger end) rightFind(PythonByteArray query) rightFind(PythonByteArray query, PythonInteger start) rightFind(PythonByteArray query, PythonInteger start, PythonInteger end) rightIndex(PythonInteger query) rightIndex(PythonInteger query, PythonInteger start) rightIndex(PythonInteger query, PythonInteger start, PythonInteger end) rightIndex(PythonByteArray query) rightIndex(PythonByteArray query, PythonInteger start) rightIndex(PythonByteArray query, PythonInteger start, PythonInteger end) rightJustify(PythonInteger fillWidth) rightJustify(PythonInteger fillWidth, PythonByteArray fillCharacter) rightSplit(PythonByteArray seperator) rightSplit(PythonByteArray seperator, PythonInteger maxSplits) rightSplit(PythonNone ignored) rightSplit(PythonNone seperator, PythonInteger maxSplits) rightStrip(PythonByteArray bytesToStrip) rightStrip(PythonNone ignored) setByte(PythonInteger index, PythonInteger item) setSlice(PythonSlice slice, PythonLikeObject iterable) split()split(PythonByteArray seperator) split(PythonByteArray seperator, PythonInteger maxSplits) split(PythonNone ignored) split(PythonNone seperator, PythonInteger maxSplits) splitLines(PythonBoolean keepEnds) startsWith(PythonLikeTuple<PythonByteArray> prefixes) startsWith(PythonLikeTuple<PythonByteArray> prefixes, PythonInteger start) startsWith(PythonLikeTuple<PythonByteArray> prefixes, PythonInteger start, PythonInteger end) startsWith(PythonByteArray prefix) startsWith(PythonByteArray prefix, PythonInteger start) startsWith(PythonByteArray prefix, PythonInteger start, PythonInteger end) strip()strip(PythonByteArray bytesToStrip) strip(PythonNone ignored) swapCase()title()toString()translate(PythonByteArray table) translate(PythonByteArray table, PythonByteArray delete) translate(PythonBytes table) translate(PythonBytes table, PythonByteArray delete) translate(PythonNone table) translate(PythonNone table, PythonByteArray 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$__hash__, $method$__ne__, $method$__repr__, $method$__setattr__, $setAttribute
-
Field Details
-
valueBuffer
-
-
Constructor Details
-
PythonByteArray
public PythonByteArray() -
PythonByteArray
public PythonByteArray(byte[] data) -
PythonByteArray
-
-
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
-
setByte
-
setSlice
-
deleteIndex
-
deleteSlice
-
appendByte
-
clear
-
copy
-
extend
-
inplaceAdd
-
inplaceRepeat
-
inplaceRepeat
-
insert
-
pop
-
pop
-
remove
-
reverse
-
hasPrefix
-
hasSuffix
-
removePrefix
-
removeSuffix
-
decode
-
decode
-
decode
-
endsWith
-
endsWith
-
endsWith
-
endsWith
-
endsWith
-
endsWith
public PythonBoolean endsWith(PythonLikeTuple<PythonByteArray> 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 PythonByteArray replace(PythonBytesLikeObject old, PythonBytesLikeObject replacement, BigInteger count) -
replace
-
replace
public PythonByteArray replace(PythonByteArray old, PythonByteArray replacement, PythonInteger count) -
rightFind
-
rightFind
-
rightFind
-
rightIndex
-
rightIndex
-
rightIndex
-
rightFind
-
rightFind
-
rightFind
-
rightIndex
-
rightIndex
-
rightIndex
-
rightPartition
-
startsWith
-
startsWith
-
startsWith
-
startsWith
-
startsWith
-
startsWith
public PythonBoolean startsWith(PythonLikeTuple<PythonByteArray> prefixes, PythonInteger start, PythonInteger end) -
translate
-
translate
-
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
public PythonLikeList<PythonByteArray> rightSplit(PythonByteArray seperator, PythonInteger maxSplits) -
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()
-