fix formatting of Java API in doc comments + genjavadoc 0.3

This commit is contained in:
Roland 2013-03-07 09:05:55 +01:00
parent cd847e3a29
commit bcfbea42c1
36 changed files with 169 additions and 222 deletions

View file

@ -307,7 +307,8 @@ sealed abstract class ByteString extends IndexedSeq[Byte] with IndexedSeqOptimiz
override def indexOf[B >: Byte](elem: B): Int = iterator.indexOf(elem)
/**
* JAVA API
* Java API: copy this ByteString into a fresh byte array
*
* @return this ByteString copied into a byte array
*/
protected[ByteString] def toArray: Array[Byte] = toArray[Byte] // protected[ByteString] == public to Java but hidden to Scala * fnizz *
@ -355,18 +356,14 @@ sealed abstract class ByteString extends IndexedSeq[Byte] with IndexedSeqOptimiz
def asByteBuffer: ByteBuffer
/**
* Returns an immutable Iterable of read-only ByteBuffers that directly wraps this ByteStrings
* Scala API: Returns an immutable Iterable of read-only ByteBuffers that directly wraps this ByteStrings
* all fragments. Will always have at least one entry.
*
* Scala API
*/
def asByteBuffers: immutable.Iterable[ByteBuffer]
/**
* Returns an Iterable of read-only ByteBuffers that directly wraps this ByteStrings
* Java API: Returns an Iterable of read-only ByteBuffers that directly wraps this ByteStrings
* all fragments. Will always have at least one entry.
*
* Java API
*/
def getByteBuffers(): JIterable[ByteBuffer] = {
import scala.collection.JavaConverters.asJavaIterableConverter