/usr/share/doc/libjoda-time-java/api/org/joda/time/Partial.html is in libjoda-time-java-doc 2.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Partial (Joda-Time 2.4 API)</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Partial (Joda-Time 2.4 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Partial.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../org/joda/time/MutablePeriod.html" title="class in org.joda.time"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../org/joda/time/Partial.Property.html" title="class in org.joda.time"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/joda/time/Partial.html" target="_top">Frames</a></li>
<li><a href="Partial.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested_class_summary">Nested</a> | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.joda.time</div>
<h2 title="Class Partial" class="title">Class Partial</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">org.joda.time.base.AbstractPartial</a></li>
<li>
<ul class="inheritance">
<li>org.joda.time.Partial</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a>>, <a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></dd>
</dl>
<hr>
<br>
<pre>public final class <span class="strong">Partial</span>
extends <a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">AbstractPartial</a>
implements <a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre>
<div class="block">Partial is an immutable partial datetime supporting any set of datetime fields.
<p>
A Partial instance can be used to hold any combination of fields.
The instance does not contain a time zone, so any datetime is local.
<p>
A Partial can be matched against an instant using <a href="../../../org/joda/time/Partial.html#isMatch(org.joda.time.ReadableInstant)"><code>isMatch(ReadableInstant)</code></a>.
This method compares each field on this partial with those of the instant
and determines if the partial matches the instant.
Given this definition, an empty Partial instance represents any datetime
and always matches.
<p>
Calculations on Partial are performed using a <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time"><code>Chronology</code></a>.
This chronology is set to be in the UTC time zone for all calculations.
<p>
Each individual field can be queried in two ways:
<ul>
<li><code>get(DateTimeFieldType.monthOfYear())</code>
<li><code>property(DateTimeFieldType.monthOfYear()).get()</code>
</ul>
The second technique also provides access to other useful methods on the
field:
<ul>
<li>numeric value - <code>monthOfYear().get()</code>
<li>text value - <code>monthOfYear().getAsText()</code>
<li>short text value - <code>monthOfYear().getAsShortText()</code>
<li>maximum/minimum values - <code>monthOfYear().getMaximumValue()</code>
<li>add/subtract - <code>monthOfYear().addToCopy()</code>
<li>set - <code>monthOfYear().setCopy()</code>
</ul>
<p>
Partial is thread-safe and immutable, provided that the Chronology is as well.
All standard Chronology classes supplied are thread-safe and immutable.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>1.1</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../serialized-form.html#org.joda.time.Partial">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class </code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.Property.html" title="class in org.joda.time">Partial.Property</a></strong></code>
<div class="block">The property class for <code>Partial</code>.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/Partial.html#Partial()">Partial</a></strong>()</code>
<div class="block">Constructs a Partial with no fields or values, which can be considered
to represent any date.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/Partial.html#Partial(org.joda.time.Chronology)">Partial</a></strong>(<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> chrono)</code>
<div class="block">Constructs a Partial with no fields or values, which can be considered
to represent any date.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/Partial.html#Partial(org.joda.time.DateTimeFieldType[],%20int[])">Partial</a></strong>(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>[] types,
int[] values)</code>
<div class="block">Constructs a Partial with the specified fields and values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/Partial.html#Partial(org.joda.time.DateTimeFieldType[],%20int[],%20org.joda.time.Chronology)">Partial</a></strong>(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>[] types,
int[] values,
<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> chronology)</code>
<div class="block">Constructs a Partial with the specified fields and values.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/Partial.html#Partial(org.joda.time.DateTimeFieldType,%20int)">Partial</a></strong>(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> type,
int value)</code>
<div class="block">Constructs a Partial with the specified field and value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/Partial.html#Partial(org.joda.time.DateTimeFieldType,%20int,%20org.joda.time.Chronology)">Partial</a></strong>(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> type,
int value,
<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> chronology)</code>
<div class="block">Constructs a Partial with the specified field and value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../org/joda/time/Partial.html#Partial(org.joda.time.ReadablePartial)">Partial</a></strong>(<a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a> partial)</code>
<div class="block">Constructs a Partial by copying all the fields and types from
another partial.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#getChronology()">getChronology</a></strong>()</code>
<div class="block">Gets the chronology of the partial which is never null.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../org/joda/time/DateTimeField.html" title="class in org.joda.time">DateTimeField</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#getField(int,%20org.joda.time.Chronology)">getField</a></strong>(int index,
<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> chrono)</code>
<div class="block">Gets the field for a specific index in the chronology specified.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#getFieldType(int)">getFieldType</a></strong>(int index)</code>
<div class="block">Gets the field type at the specified index.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#getFieldTypes()">getFieldTypes</a></strong>()</code>
<div class="block">Gets an array of the field type of each of the fields that
this partial supports.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/format/DateTimeFormatter.html" title="class in org.joda.time.format">DateTimeFormatter</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#getFormatter()">getFormatter</a></strong>()</code>
<div class="block">Gets a formatter suitable for the fields in this partial.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#getValue(int)">getValue</a></strong>(int index)</code>
<div class="block">Gets the value of the field at the specified index.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int[]</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#getValues()">getValues</a></strong>()</code>
<div class="block">Gets an array of the value of each of the fields that
this partial supports.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#isMatch(org.joda.time.ReadableInstant)">isMatch</a></strong>(<a href="../../../org/joda/time/ReadableInstant.html" title="interface in org.joda.time">ReadableInstant</a> instant)</code>
<div class="block">Does this partial match the specified instant.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#isMatch(org.joda.time.ReadablePartial)">isMatch</a></strong>(<a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a> partial)</code>
<div class="block">Does this partial match the specified partial.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#minus(org.joda.time.ReadablePeriod)">minus</a></strong>(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a> period)</code>
<div class="block">Gets a copy of this instance with the specified period take away.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#plus(org.joda.time.ReadablePeriod)">plus</a></strong>(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a> period)</code>
<div class="block">Gets a copy of this instance with the specified period added.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Partial.Property.html" title="class in org.joda.time">Partial.Property</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#property(org.joda.time.DateTimeFieldType)">property</a></strong>(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> type)</code>
<div class="block">Gets the property object for the specified type, which contains
many useful methods for getting and manipulating the partial.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#size()">size</a></strong>()</code>
<div class="block">Gets the number of fields in this partial.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#toString()">toString</a></strong>()</code>
<div class="block">Output the date in an appropriate ISO8601 format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#toString(java.lang.String)">toString</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pattern)</code>
<div class="block">Output the date using the specified format pattern.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#toString(java.lang.String,%20java.util.Locale)">toString</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pattern,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> locale)</code>
<div class="block">Output the date using the specified format pattern.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#toStringList()">toStringList</a></strong>()</code>
<div class="block">Gets a string version of the partial that lists all the fields.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#with(org.joda.time.DateTimeFieldType,%20int)">with</a></strong>(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> fieldType,
int value)</code>
<div class="block">Gets a copy of this date with the specified field set to a new value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#withChronologyRetainFields(org.joda.time.Chronology)">withChronologyRetainFields</a></strong>(<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> newChronology)</code>
<div class="block">Creates a new Partial instance with the specified chronology.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#withField(org.joda.time.DateTimeFieldType,%20int)">withField</a></strong>(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> fieldType,
int value)</code>
<div class="block">Gets a copy of this Partial with the specified field set to a new value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#withFieldAdded(org.joda.time.DurationFieldType,%20int)">withFieldAdded</a></strong>(<a href="../../../org/joda/time/DurationFieldType.html" title="class in org.joda.time">DurationFieldType</a> fieldType,
int amount)</code>
<div class="block">Gets a copy of this Partial with the value of the specified field increased.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#withFieldAddWrapped(org.joda.time.DurationFieldType,%20int)">withFieldAddWrapped</a></strong>(<a href="../../../org/joda/time/DurationFieldType.html" title="class in org.joda.time">DurationFieldType</a> fieldType,
int amount)</code>
<div class="block">Gets a copy of this Partial with the value of the specified field increased.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#without(org.joda.time.DateTimeFieldType)">without</a></strong>(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> fieldType)</code>
<div class="block">Gets a copy of this date with the specified field removed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a></code></td>
<td class="colLast"><code><strong><a href="../../../org/joda/time/Partial.html#withPeriodAdded(org.joda.time.ReadablePeriod,%20int)">withPeriodAdded</a></strong>(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a> period,
int scalar)</code>
<div class="block">Gets a copy of this Partial with the specified period added.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.joda.time.base.AbstractPartial">
<!-- -->
</a>
<h3>Methods inherited from class org.joda.time.base.<a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">AbstractPartial</a></h3>
<code><a href="../../../org/joda/time/base/AbstractPartial.html#compareTo(org.joda.time.ReadablePartial)">compareTo</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#equals(java.lang.Object)">equals</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#get(org.joda.time.DateTimeFieldType)">get</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#getField(int)">getField</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#getFields()">getFields</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#hashCode()">hashCode</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#indexOf(org.joda.time.DateTimeFieldType)">indexOf</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#indexOf(org.joda.time.DurationFieldType)">indexOf</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#indexOfSupported(org.joda.time.DateTimeFieldType)">indexOfSupported</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#indexOfSupported(org.joda.time.DurationFieldType)">indexOfSupported</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#isAfter(org.joda.time.ReadablePartial)">isAfter</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#isBefore(org.joda.time.ReadablePartial)">isBefore</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#isEqual(org.joda.time.ReadablePartial)">isEqual</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#isSupported(org.joda.time.DateTimeFieldType)">isSupported</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#toDateTime(org.joda.time.ReadableInstant)">toDateTime</a>, <a href="../../../org/joda/time/base/AbstractPartial.html#toString(org.joda.time.format.DateTimeFormatter)">toString</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.joda.time.ReadablePartial">
<!-- -->
</a>
<h3>Methods inherited from interface org.joda.time.<a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></h3>
<code><a href="../../../org/joda/time/ReadablePartial.html#equals(java.lang.Object)">equals</a>, <a href="../../../org/joda/time/ReadablePartial.html#get(org.joda.time.DateTimeFieldType)">get</a>, <a href="../../../org/joda/time/ReadablePartial.html#getField(int)">getField</a>, <a href="../../../org/joda/time/ReadablePartial.html#hashCode()">hashCode</a>, <a href="../../../org/joda/time/ReadablePartial.html#isSupported(org.joda.time.DateTimeFieldType)">isSupported</a>, <a href="../../../org/joda/time/ReadablePartial.html#toDateTime(org.joda.time.ReadableInstant)">toDateTime</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Comparable">
<!-- -->
</a>
<h3>Methods inherited from interface java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true#compareTo(T)" title="class or interface in java.lang">compareTo</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Partial()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Partial</h4>
<pre>public Partial()</pre>
<div class="block">Constructs a Partial with no fields or values, which can be considered
to represent any date.
<p>
This is most useful when constructing partials, for example:
<pre>
Partial p = new Partial()
.with(DateTimeFieldType.dayOfWeek(), 5)
.with(DateTimeFieldType.hourOfDay(), 12)
.with(DateTimeFieldType.minuteOfHour(), 20);
</pre>
Note that, although this is a clean way to write code, it is fairly
inefficient internally.
<p>
The constructor uses the default ISO chronology.</div>
</li>
</ul>
<a name="Partial(org.joda.time.Chronology)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Partial</h4>
<pre>public Partial(<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> chrono)</pre>
<div class="block">Constructs a Partial with no fields or values, which can be considered
to represent any date.
<p>
This is most useful when constructing partials, for example:
<pre>
Partial p = new Partial(chrono)
.with(DateTimeFieldType.dayOfWeek(), 5)
.with(DateTimeFieldType.hourOfDay(), 12)
.with(DateTimeFieldType.minuteOfHour(), 20);
</pre>
Note that, although this is a clean way to write code, it is fairly
inefficient internally.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>chrono</code> - the chronology, null means ISO</dd></dl>
</li>
</ul>
<a name="Partial(org.joda.time.DateTimeFieldType, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Partial</h4>
<pre>public Partial(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> type,
int value)</pre>
<div class="block">Constructs a Partial with the specified field and value.
<p>
The constructor uses the default ISO chronology.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - the single type to create the partial from, not null</dd><dd><code>value</code> - the value to store</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the type or value is invalid</dd></dl>
</li>
</ul>
<a name="Partial(org.joda.time.DateTimeFieldType, int, org.joda.time.Chronology)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Partial</h4>
<pre>public Partial(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> type,
int value,
<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> chronology)</pre>
<div class="block">Constructs a Partial with the specified field and value.
<p>
The constructor uses the specified chronology.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - the single type to create the partial from, not null</dd><dd><code>value</code> - the value to store</dd><dd><code>chronology</code> - the chronology, null means ISO</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the type or value is invalid</dd></dl>
</li>
</ul>
<a name="Partial(org.joda.time.DateTimeFieldType[], int[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Partial</h4>
<pre>public Partial(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>[] types,
int[] values)</pre>
<div class="block">Constructs a Partial with the specified fields and values.
The fields must be specified in the order largest to smallest.
For year and weekyear fields with equal duration, year is defined
as being larger than weekyear.
<p>
The constructor uses the specified chronology.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>types</code> - the types to create the partial from, not null</dd><dd><code>values</code> - the values to store, not null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the types or values are invalid</dd></dl>
</li>
</ul>
<a name="Partial(org.joda.time.DateTimeFieldType[], int[], org.joda.time.Chronology)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Partial</h4>
<pre>public Partial(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>[] types,
int[] values,
<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> chronology)</pre>
<div class="block">Constructs a Partial with the specified fields and values.
The fields must be specified in the order largest to smallest.
For year and weekyear fields with equal duration, year is defined
as being larger than weekyear.
<p>
The constructor uses the specified chronology.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>types</code> - the types to create the partial from, not null</dd><dd><code>values</code> - the values to store, not null</dd><dd><code>chronology</code> - the chronology, null means ISO</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the types or values are invalid</dd></dl>
</li>
</ul>
<a name="Partial(org.joda.time.ReadablePartial)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Partial</h4>
<pre>public Partial(<a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a> partial)</pre>
<div class="block">Constructs a Partial by copying all the fields and types from
another partial.
<p>
This is most useful when copying from a YearMonthDay or TimeOfDay.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="size()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>public int size()</pre>
<div class="block">Gets the number of fields in this partial.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/joda/time/ReadablePartial.html#size()">size</a></code> in interface <code><a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the field count</dd></dl>
</li>
</ul>
<a name="getChronology()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getChronology</h4>
<pre>public <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> getChronology()</pre>
<div class="block">Gets the chronology of the partial which is never null.
<p>
The <a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time"><code>Chronology</code></a> is the calculation engine behind the partial and
provides conversion and validation of the fields in a particular calendar system.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/joda/time/ReadablePartial.html#getChronology()">getChronology</a></code> in interface <code><a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the chronology, never null</dd></dl>
</li>
</ul>
<a name="getField(int, org.joda.time.Chronology)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getField</h4>
<pre>protected <a href="../../../org/joda/time/DateTimeField.html" title="class in org.joda.time">DateTimeField</a> getField(int index,
<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> chrono)</pre>
<div class="block">Gets the field for a specific index in the chronology specified.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/joda/time/base/AbstractPartial.html#getField(int,%20org.joda.time.Chronology)">getField</a></code> in class <code><a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">AbstractPartial</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - the index to retrieve</dd><dd><code>chrono</code> - the chronology to use</dd>
<dt><span class="strong">Returns:</span></dt><dd>the field</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the index is invalid</dd></dl>
</li>
</ul>
<a name="getFieldType(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFieldType</h4>
<pre>public <a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> getFieldType(int index)</pre>
<div class="block">Gets the field type at the specified index.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/joda/time/ReadablePartial.html#getFieldType(int)">getFieldType</a></code> in interface <code><a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../org/joda/time/base/AbstractPartial.html#getFieldType(int)">getFieldType</a></code> in class <code><a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">AbstractPartial</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - the index to retrieve</dd>
<dt><span class="strong">Returns:</span></dt><dd>the field at the specified index</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the index is invalid</dd></dl>
</li>
</ul>
<a name="getFieldTypes()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFieldTypes</h4>
<pre>public <a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a>[] getFieldTypes()</pre>
<div class="block">Gets an array of the field type of each of the fields that
this partial supports.
<p>
The fields are returned largest to smallest.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../org/joda/time/base/AbstractPartial.html#getFieldTypes()">getFieldTypes</a></code> in class <code><a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">AbstractPartial</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the array of field types (cloned), largest to smallest</dd></dl>
</li>
</ul>
<a name="getValue(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre>public int getValue(int index)</pre>
<div class="block">Gets the value of the field at the specified index.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/joda/time/ReadablePartial.html#getValue(int)">getValue</a></code> in interface <code><a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - the index</dd>
<dt><span class="strong">Returns:</span></dt><dd>the value</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - if the index is invalid</dd></dl>
</li>
</ul>
<a name="getValues()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValues</h4>
<pre>public int[] getValues()</pre>
<div class="block">Gets an array of the value of each of the fields that
this partial supports.
<p>
The fields are returned largest to smallest.
Each value corresponds to the same array index as <code>getFieldTypes()</code></div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../org/joda/time/base/AbstractPartial.html#getValues()">getValues</a></code> in class <code><a href="../../../org/joda/time/base/AbstractPartial.html" title="class in org.joda.time.base">AbstractPartial</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the current values of each field (cloned), largest to smallest</dd></dl>
</li>
</ul>
<a name="withChronologyRetainFields(org.joda.time.Chronology)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withChronologyRetainFields</h4>
<pre>public <a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a> withChronologyRetainFields(<a href="../../../org/joda/time/Chronology.html" title="class in org.joda.time">Chronology</a> newChronology)</pre>
<div class="block">Creates a new Partial instance with the specified chronology.
This instance is immutable and unaffected by this method call.
<p>
This method retains the values of the fields, thus the result will
typically refer to a different instant.
<p>
The time zone of the specified chronology is ignored, as Partial
operates without a time zone.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>newChronology</code> - the new chronology, null means ISO</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this datetime with a different chronology</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the values are invalid for the new chronology</dd></dl>
</li>
</ul>
<a name="with(org.joda.time.DateTimeFieldType, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>with</h4>
<pre>public <a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a> with(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> fieldType,
int value)</pre>
<div class="block">Gets a copy of this date with the specified field set to a new value.
<p>
If this partial did not previously support the field, the new one will.
Contrast this behaviour with <a href="../../../org/joda/time/Partial.html#withField(org.joda.time.DateTimeFieldType,%20int)"><code>withField(DateTimeFieldType, int)</code></a>.
<p>
For example, if the field type is <code>dayOfMonth</code> then the day
would be changed/added in the returned instance.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldType</code> - the field type to set, not null</dd><dd><code>value</code> - the value to set</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the field set</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value is null or invalid</dd></dl>
</li>
</ul>
<a name="without(org.joda.time.DateTimeFieldType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>without</h4>
<pre>public <a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a> without(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> fieldType)</pre>
<div class="block">Gets a copy of this date with the specified field removed.
<p>
If this partial did not previously support the field, no error occurs.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldType</code> - the field type to remove, may be null</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the field removed</dd></dl>
</li>
</ul>
<a name="withField(org.joda.time.DateTimeFieldType, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withField</h4>
<pre>public <a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a> withField(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> fieldType,
int value)</pre>
<div class="block">Gets a copy of this Partial with the specified field set to a new value.
<p>
If this partial does not support the field, an exception is thrown.
Contrast this behaviour with <a href="../../../org/joda/time/Partial.html#with(org.joda.time.DateTimeFieldType,%20int)"><code>with(DateTimeFieldType, int)</code></a>.
<p>
For example, if the field type is <code>dayOfMonth</code> then the day
would be changed in the returned instance if supported.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldType</code> - the field type to set, not null</dd><dd><code>value</code> - the value to set</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the field set</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value is null or invalid</dd></dl>
</li>
</ul>
<a name="withFieldAdded(org.joda.time.DurationFieldType, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withFieldAdded</h4>
<pre>public <a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a> withFieldAdded(<a href="../../../org/joda/time/DurationFieldType.html" title="class in org.joda.time">DurationFieldType</a> fieldType,
int amount)</pre>
<div class="block">Gets a copy of this Partial with the value of the specified field increased.
If this partial does not support the field, an exception is thrown.
<p>
If the addition is zero, then <code>this</code> is returned.
The addition will overflow into larger fields (eg. minute to hour).
However, it will not wrap around if the top maximum is reached.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldType</code> - the field type to add to, not null</dd><dd><code>amount</code> - the amount to add</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the field updated</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value is null or invalid</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the new datetime exceeds the capacity</dd></dl>
</li>
</ul>
<a name="withFieldAddWrapped(org.joda.time.DurationFieldType, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withFieldAddWrapped</h4>
<pre>public <a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a> withFieldAddWrapped(<a href="../../../org/joda/time/DurationFieldType.html" title="class in org.joda.time">DurationFieldType</a> fieldType,
int amount)</pre>
<div class="block">Gets a copy of this Partial with the value of the specified field increased.
If this partial does not support the field, an exception is thrown.
<p>
If the addition is zero, then <code>this</code> is returned.
The addition will overflow into larger fields (eg. minute to hour).
If the maximum is reached, the addition will wra.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldType</code> - the field type to add to, not null</dd><dd><code>amount</code> - the amount to add</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the field updated</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the value is null or invalid</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the new datetime exceeds the capacity</dd></dl>
</li>
</ul>
<a name="withPeriodAdded(org.joda.time.ReadablePeriod, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withPeriodAdded</h4>
<pre>public <a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a> withPeriodAdded(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a> period,
int scalar)</pre>
<div class="block">Gets a copy of this Partial with the specified period added.
<p>
If the addition is zero, then <code>this</code> is returned.
Fields in the period that aren't present in the partial are ignored.
<p>
This method is typically used to add multiple copies of complex
period instances. Adding one field is best achieved using the method
<a href="../../../org/joda/time/Partial.html#withFieldAdded(org.joda.time.DurationFieldType,%20int)"><code>withFieldAdded(DurationFieldType, int)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>period</code> - the period to add to this one, null means zero</dd><dd><code>scalar</code> - the amount of times to add, such as -1 to subtract once</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the period added</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the new datetime exceeds the capacity</dd></dl>
</li>
</ul>
<a name="plus(org.joda.time.ReadablePeriod)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>plus</h4>
<pre>public <a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a> plus(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a> period)</pre>
<div class="block">Gets a copy of this instance with the specified period added.
<p>
If the amount is zero or null, then <code>this</code> is returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>period</code> - the duration to add to this one, null means zero</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the period added</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the new datetime exceeds the capacity of a long</dd></dl>
</li>
</ul>
<a name="minus(org.joda.time.ReadablePeriod)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minus</h4>
<pre>public <a href="../../../org/joda/time/Partial.html" title="class in org.joda.time">Partial</a> minus(<a href="../../../org/joda/time/ReadablePeriod.html" title="interface in org.joda.time">ReadablePeriod</a> period)</pre>
<div class="block">Gets a copy of this instance with the specified period take away.
<p>
If the amount is zero or null, then <code>this</code> is returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>period</code> - the period to reduce this instant by</dd>
<dt><span class="strong">Returns:</span></dt><dd>a copy of this instance with the period taken away</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the new datetime exceeds the capacity of a long</dd></dl>
</li>
</ul>
<a name="property(org.joda.time.DateTimeFieldType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>property</h4>
<pre>public <a href="../../../org/joda/time/Partial.Property.html" title="class in org.joda.time">Partial.Property</a> property(<a href="../../../org/joda/time/DateTimeFieldType.html" title="class in org.joda.time">DateTimeFieldType</a> type)</pre>
<div class="block">Gets the property object for the specified type, which contains
many useful methods for getting and manipulating the partial.
<p>
See also <a href="../../../org/joda/time/ReadablePartial.html#get(org.joda.time.DateTimeFieldType)"><code>ReadablePartial.get(DateTimeFieldType)</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - the field type to get the property for, not null</dd>
<dt><span class="strong">Returns:</span></dt><dd>the property object</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the field is null or unsupported</dd></dl>
</li>
</ul>
<a name="isMatch(org.joda.time.ReadableInstant)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isMatch</h4>
<pre>public boolean isMatch(<a href="../../../org/joda/time/ReadableInstant.html" title="interface in org.joda.time">ReadableInstant</a> instant)</pre>
<div class="block">Does this partial match the specified instant.
<p>
A match occurs when all the fields of this partial are the same as the
corresponding fields on the specified instant.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>instant</code> - an instant to check against, null means now in default zone</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if this partial matches the specified instant</dd></dl>
</li>
</ul>
<a name="isMatch(org.joda.time.ReadablePartial)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isMatch</h4>
<pre>public boolean isMatch(<a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a> partial)</pre>
<div class="block">Does this partial match the specified partial.
<p>
A match occurs when all the fields of this partial are the same as the
corresponding fields on the specified partial.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>partial</code> - a partial to check against, must not be null</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if this partial matches the specified partial</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the partial is null</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the fields of the two partials do not match</dd><dt><span class="strong">Since:</span></dt>
<dd>1.5</dd></dl>
</li>
</ul>
<a name="getFormatter()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFormatter</h4>
<pre>public <a href="../../../org/joda/time/format/DateTimeFormatter.html" title="class in org.joda.time.format">DateTimeFormatter</a> getFormatter()</pre>
<div class="block">Gets a formatter suitable for the fields in this partial.
<p>
If there is no appropriate ISO format, null is returned.
This method may return a formatter that does not display all the
fields of the partial. This might occur when you have overlapping
fields, such as dayOfWeek and dayOfMonth.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a formatter suitable for the fields in this partial, null
if none is suitable</dd></dl>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre>
<div class="block">Output the date in an appropriate ISO8601 format.
<p>
This method will output the partial in one of two ways.
If <a href="../../../org/joda/time/Partial.html#getFormatter()"><code>getFormatter()</code></a>
<p>
If there is no appropriate ISO format a dump of the fields is output
via <a href="../../../org/joda/time/Partial.html#toStringList()"><code>toStringList()</code></a>.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/joda/time/ReadablePartial.html#toString()">toString</a></code> in interface <code><a href="../../../org/joda/time/ReadablePartial.html" title="interface in org.joda.time">ReadablePartial</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>ISO8601 formatted string</dd></dl>
</li>
</ul>
<a name="toStringList()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toStringList</h4>
<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toStringList()</pre>
<div class="block">Gets a string version of the partial that lists all the fields.
<p>
This method exists to provide a better debugging toString than
the standard toString. This method lists all the fields and their
values in a style similar to the collections framework.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a toString format that lists all the fields</dd></dl>
</li>
</ul>
<a name="toString(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pattern)</pre>
<div class="block">Output the date using the specified format pattern.
Unsupported fields will appear as special unicode characters.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pattern</code> - the pattern specification, null means use <code>toString</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/joda/time/format/DateTimeFormat.html" title="class in org.joda.time.format"><code>DateTimeFormat</code></a></dd></dl>
</li>
</ul>
<a name="toString(java.lang.String, java.util.Locale)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pattern,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true" title="class or interface in java.util">Locale</a> locale)</pre>
<div class="block">Output the date using the specified format pattern.
Unsupported fields will appear as special unicode characters.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pattern</code> - the pattern specification, null means use <code>toString</code></dd><dd><code>locale</code> - Locale to use, null means default</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/joda/time/format/DateTimeFormat.html" title="class in org.joda.time.format"><code>DateTimeFormat</code></a></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Partial.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../org/joda/time/MutablePeriod.html" title="class in org.joda.time"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../org/joda/time/Partial.Property.html" title="class in org.joda.time"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/joda/time/Partial.html" target="_top">Frames</a></li>
<li><a href="Partial.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested_class_summary">Nested</a> | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2002–2014 <a href="http://www.joda.org">Joda.org</a>. All rights reserved.</small></p>
</body>
</html>
|