首页 / 词典 / good

toString

  • 网络字符串表示;转换为字符串;转字符串;返回字符串
toStringtoString
  1. The toString () generator also gives you the ability to handle arrays .

    您还能使用toString()生成器处理数组。

  2. The other method that is now available for all array types is toString () .

    所有数组类型都可用的另一个方法是toString()。

  3. Doing so prevents the toString () method from printing a lot of output .

    这样做可以阻止toString()方法输出过多内容。

  4. ( The Airline . toString () method is called for the display values . )

    在选择字段中,请注意airline.id是可选值(调用Airline.toString()方法来显示值)。

  5. Custom templates allow you to adjust the output generated for the toString () method .

    自定义模板允许您调整toString()方法生成的输出。

  6. Unfortunately , writing an arbitrary object to a stream invokes the object 's toString method .

    不幸的是,将对象写入流就要调用对象的toString方法。

  7. The toString () method is what the JList calls to display the results .

    JList调用toString()方法显示结果。

  8. Default equals , hashcode , and toString methods are automatically generated .

    自动生成默认的equals、hashcode和toString方法。

  9. Just for the record , I think the ToString annotation is an example of an appropriate use !

    明确地讲,我认为ToString注释是一个适当使用的例子!

  10. I 've used the visitEnd () method to add the toString () method to the class being processed .

    我已经用visitEnd()方法向正在处理的类添加toString()方法。

  11. The ToString annotation I used as an example is interesting and ( at least for me ) somewhat useful .

    我用作例子的ToString注释是有趣而且(至少对于我来说)比较有用的。

  12. The error displayed is a NullPointerException occurring in the toString () method on the Appointment class .

    显示的错误是一个NullPointerException,它发生在Appointment类上的toString()方法中。

  13. The name () and ordinal () methods report back the constructor arguments , and toString () reports back the name .

    name()和ordinal()方法返回构造函数参数,而toString()返回名称。

  14. By default , the toString () method prints a representation of the class that may not really show the properties you want to see .

    默认情况下,toString()方法输出一个类的表示,这也许不能真正显示您想要查看的属性。

  15. That way , when the toString method is called , it offers indention for easier manual reading of these documents .

    这样,当toString方法被调用时,它可以实现缩进,以使这些文档更易于阅读。

  16. The Java platform provides a convenient hook for generating a text description of an object in the form of the toString () method .

    Java平台提供了一个方便的挂钩,以生成toString()方法形式的对象的文本描述。

  17. It consists of three fields and some basic methods to support POJO-like activities , namely toString () and equals () .

    它由三个字段和一些基本的支持类似POJO行为的方法组成,即toString()和equals()。

  18. By calling the toString method of the root-level node , the framework can easily marshal the entire XML document .

    通过调用根级别节点的toString方法,这个框架可以轻松编组整个XML文档。

  19. For example , the toString () method simply lists the class name , plus all property names and values in a comma-delimited list .

    比如,toString()方法会列出类名以及所有的属性名和值,中间以逗号分割。

  20. If annotated fields are found , the class is modified to include a generated toString () method and the modified binary representation is returned .

    如果找到带注释的字段,该类将被修改以包含生成的toString()方法,而修改后的二进制表示将被返回。

  21. The new features in Galileo for generating toString () methods add to the existing ability in Eclipse to generate a lot of the Java code .

    Galileo中生成toString()方法的新特性增强了Eclipse生成大量Java代码的能力。

  22. In this case an instance lock is acquired four times : three times for the append method and one time for the toString method , right after another .

    在上面的例子中,锁的实例会被请求四次:前三次是执行append方法,最后一次是执行toString方法,紧接着前一个。

  23. When you call println langs , it calls the Node . toString () method , returning debug output .

    当您调用printlnlangs时,它会调用Node.toString()方法,以便返回调试输出。

  24. That way everything is in one place ( the field declaration ), and I get my useful description out of toString () without needing to maintain the code .

    这样,所有的东西都在一个地方(字段声明中),而且获得了toString()的有用的描述而无需维护代码。

  25. Normally , the native toString () method prints a representation of the array just like the original representation of the object , without really showing the contents .

    通常,原生toString()方法输出的数组表示就像对象的原始表示一样,并不真正显示内容。

  26. Another limitation of SOP is that it uses the toString () function to serialize the variables and therefore cannot be used for complex variables by default .

    SOP的另一限制是使用toString()函数将变量序列化,因此缺省情况下它不能用于复合变量。

  27. As you learned in " GORM : Funny name , serious technology ," the text displayed in the list comes from the User . toString () method .

    在“GORM-有趣的名称,严肃的技术”中可以了解到,列表中显示的文本来自User.toString()方法。

  28. The error occurs because I 'm trying to call the toString () method on the appointment instance before the rest of the fluent-interface setter methods are called .

    出现错误的原因在于,我试图在连贯接口setter方法被调用之前调用appointment实例上的toString()方法。

  29. As we discussed earlier , it is much more intuitive to call a getText () method than to call getProperty (" . value ") . toString () .

    正如前面所讨论的,调用getText()方法要比调用getProperty(“.value”)直观得多。

  30. The result of an Invoke can be assigned to a variable ( e.g. , myVar = obj . toString ()) .

    Invoke的结果可以分配给一个变量(例如,myVar=obj.toString())。