t

org.ensime.sexp.formats

CollectionFormats

trait CollectionFormats extends AnyRef

Support for anything with a CanBuildFrom.

Self Type
CollectionFormats with BasicFormats
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CollectionFormats
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. implicit def genMapFormat[M[_, _], K, V](implicit ev: <:<[M[K, V], GenMap[K, V]], cbf: CanBuildFrom[M[K, V], (K, V), M[K, V]], kf: SexpFormat[K], vf: SexpFormat[V]): SexpFormat[M[K, V]]
  10. implicit def genTraversableFormat[T[_], E](implicit evidence: <:<[T[E], GenTraversable[E]], cbf: CanBuildFrom[T[E], E, T[E]], ef: SexpFormat[E]): SexpFormat[T[E]]
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. implicit def numericRangeFormat[E](implicit nf: SexpFormat[E], int: Integral[E]): SexpFormat[NumericRange[E]]
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  23. implicit object BitSetFormat extends SexpFormat[BitSet]

    We only support deserialisation via im.BitSet as the general case requires going through a proxy to convert the bitmask into elements that can be read via CanBuildFrom.

    We only support deserialisation via im.BitSet as the general case requires going through a proxy to convert the bitmask into elements that can be read via CanBuildFrom. If you have your own (possibly compressed) implementation of BitSet you will need to provide your own format.

    We encode the BigInt form as a String using emacs calc-eval notation (radix is part of the string). See ViaBigDecimalFormat for a longer discussion about emacs number formats.

    This can potentially be used in Emacs using the following (which will parse the strings into big ints every time it is queried, so it's not particularly efficient):

    (require 'calc) (defmath bitsetAnd (bitset i) (logand (lsh 1 i (+ 1 i)) bitset (+ 1 i))) (defun bitsetContains (bitset i) (not (string= "0" (calc-eval "bitsetAnd($, $$)" 'num bitset i))))

    (bitsetContains "10#3" 0) ; 't (bitsetContains "10#3" 1) ; 't (bitsetContains "10#3" 2) ; nil (bitsetContains "32#10000000000000001" 0) ; t (bitsetContains "16#10000000000000001" 64) ; t (bitsetContains "16#10000000000000002" 1) ; t (bitsetContains "16#10000000000000002" 64) ; t (bitsetContains "16#10000000000000002" 0) ; nil

  24. implicit object ImBitSetFormat extends SexpFormat[BitSet]
  25. implicit object RangeFormat extends SexpFormat[Range]

Inherited from AnyRef

Inherited from Any

Ungrouped