Klasse OutletResult
java.lang.Object
org.apache.torque.generator.outlet.OutletResult
The result of an outlet. Can either be a String or a byte array.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungOutletResult(byte[] byteArrayResult) Constructor for a byte array result.OutletResult(String stringResult) Constructor for a String result. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic OutletResultconcatenate(Iterable<OutletResult> input) Concatenates a list of OutletResults.static OutletResultconcatenate(OutletResult... input) Concatenates an array of OutletResults.booleanbyte[]Returns the byte array result.Returns the string result.inthashCode()booleanReturns whether the result type is byte array.booleanReturns whether the result type is String.toString()
-
Konstruktordetails
-
OutletResult
Constructor for a String result.- Parameter:
stringResult- the String result.
-
OutletResult
public OutletResult(byte[] byteArrayResult) Constructor for a byte array result.- Parameter:
byteArrayResult- the byte array result.
-
-
Methodendetails
-
getStringResult
Returns the string result.- Gibt zurück:
- the string result, or null if this class contains a byte array result.
-
getByteArrayResult
public byte[] getByteArrayResult()Returns the byte array result.- Gibt zurück:
- the byte array result, or null if this class contains a string result.
-
isStringResult
public boolean isStringResult()Returns whether the result type is String. Note: If the instance was constructed with null byte array, this method also returns true.- Gibt zurück:
- false if the contained byteArray is not null, true otherwise.
-
isByteArrayResult
public boolean isByteArrayResult()Returns whether the result type is byte array. Note: If the instance was constructed with null string, this method also returns true.- Gibt zurück:
- false if the contained String is not null, true otherwise.
-
hashCode
public int hashCode() -
equals
-
toString
-
concatenate
Concatenates an array of OutletResults.- Parameter:
input- the OutletResults to concatenate, not null, not empty, must not contain null, all of the same type (either all string or all byte array).- Gibt zurück:
- the concatenated input.
- Löst aus:
GeneratorException- if the input outlet results are of a different type.
-
concatenate
Concatenates a list of OutletResults.- Parameter:
input- the OutletResults to concatenate, not null, not empty, must not contain null, all of the same type (either all string or all byte array).- Gibt zurück:
- the concatenated input.
- Löst aus:
GeneratorException- if the input outlet results are of a different type.
-