Options.smali 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .class public final Lokio/Options;
  2. .super Ljava/util/AbstractList;
  3. .source ""
  4. # interfaces
  5. .implements Ljava/util/RandomAccess;
  6. # annotations
  7. .annotation system Ldalvik/annotation/Signature;
  8. value = {
  9. "Ljava/util/AbstractList<",
  10. "Lokio/ByteString;",
  11. ">;",
  12. "Ljava/util/RandomAccess;"
  13. }
  14. .end annotation
  15. # instance fields
  16. .field final byteStrings:[Lokio/ByteString;
  17. # direct methods
  18. .method private constructor <init>([Lokio/ByteString;)V
  19. .locals 0
  20. invoke-direct {p0}, Ljava/util/AbstractList;-><init>()V
  21. iput-object p1, p0, Lokio/Options;->byteStrings:[Lokio/ByteString;
  22. return-void
  23. .end method
  24. .method public static varargs of([Lokio/ByteString;)Lokio/Options;
  25. .locals 1
  26. new-instance v0, Lokio/Options;
  27. invoke-virtual {p0}, [Lokio/ByteString;->clone()Ljava/lang/Object;
  28. move-result-object p0
  29. check-cast p0, [Lokio/ByteString;
  30. invoke-direct {v0, p0}, Lokio/Options;-><init>([Lokio/ByteString;)V
  31. return-object v0
  32. .end method
  33. # virtual methods
  34. .method public bridge synthetic get(I)Ljava/lang/Object;
  35. .locals 0
  36. invoke-virtual {p0, p1}, Lokio/Options;->get(I)Lokio/ByteString;
  37. move-result-object p1
  38. return-object p1
  39. .end method
  40. .method public get(I)Lokio/ByteString;
  41. .locals 1
  42. iget-object v0, p0, Lokio/Options;->byteStrings:[Lokio/ByteString;
  43. aget-object p1, v0, p1
  44. return-object p1
  45. .end method
  46. .method public size()I
  47. .locals 1
  48. iget-object v0, p0, Lokio/Options;->byteStrings:[Lokio/ByteString;
  49. array-length v0, v0
  50. return v0
  51. .end method