\r\n

51Degrees Device Detection Java  4.4

Device detection services for 51Degrees Pipeline
  • fiftyone
  • devicedetection
  • hash
  • engine
  • onpremise
  • interop
  • Swig

fiftyone.devicedetection.hash.engine.onpremise.interop.Swig Class Reference

Detailed Description

Static methods to help interoperability through the SWIG layer to C++.

Static Public Member Functions

static List< String >  asList (VectorStringSwig vector)
Copy the values in the native string vector to a List. More...
static List< String >  asUnmodifiableList (VectorStringSwig vector)
The same as asList(VectorStringSwig) but makes the returned list unmodifiable. More...
static VectorStringSwig  asVector (List< String > list)
Copy the values in the List to a new native string vector. More...
static byte []  asBytes (String str)
Convert a string to a byte array, including the null terminator. More...

Member Function Documentation

◆ asBytes()

static byte [] fiftyone.devicedetection.hash.engine.onpremise.interop.Swig.asBytes ( String   str )
static

Convert a string to a byte array, including the null terminator.

This differs from the .getBytes method by adding the null terminator.

Parameters
str - string to convert
Returns
byte array containing the input string

◆ asList()

static List<String> fiftyone.devicedetection.hash.engine.onpremise.interop.Swig.asList ( VectorStringSwig   vector )
static

Copy the values in the native string vector to a List.

Parameters
vector - native instance to copy
Returns
list with values from the vector

◆ asUnmodifiableList()

static List<String> fiftyone.devicedetection.hash.engine.onpremise.interop.Swig.asUnmodifiableList ( VectorStringSwig   vector )
static

The same as asList(VectorStringSwig) but makes the returned list unmodifiable.

Parameters
vector - native instance to copy
Returns
unmodifiable list with values from the vector

◆ asVector()

static VectorStringSwig fiftyone.devicedetection.hash.engine.onpremise.interop.Swig.asVector ( List< String >   list )
static

Copy the values in the List to a new native string vector.

Parameters
list - the list to copy
Returns
new native vector with values from the list