Commit graph

5664 commits

Author SHA1 Message Date
Chris Beams
08ca7ee0f9
Sort static factory methods at bottom 2018-02-21 10:45:21 +01:00
Chris Beams
fb856aea95
Favor public visibility for non-private members of package-private types
Public members of package-private classes are in effect still
package-private. Leaving the public modifier in place on these members
(as opposed to marking all members package-private) is beneficial for
two reasons:

 1. It leaves these members looking "normal" to the trained Java eye.
Readers are not left wondering why constructors and methods are
package-private. They can notice, if and when appropriate, that the
class itself is package-private, and can understand the transitive
visibility of each member on that basis.  Otherwise, the class is left
looking conventional, unsurprising, and therefore as easy as possible to
read and understand.

 2. It leaves the visibility of these members controlled by a single
modifier at the class level as opposed to N+1 modifiers (one for every
member + the class itself). Should the class in question for some reason
need to be promoted to public visibility, for example if it were to be
moved to a different package, its members would automatically inherit
the now-public visibility of the class, which is likely to be the
desired state, because if the class needs to be public, at least some of
its members will need to be public too. The maintainer making that
change can (and should) reduce the visibility of any members that should
remain package-private (e.g. those that exist only for for testing
purposes), but in doing so, they make an explicit and self-documenting
decision that will show up at the level of a Git diff.
2018-02-21 10:45:21 +01:00
Chris Beams
a72bb72473
Rename classes from Node* => SeedNode* as appropriate
Each of the classes here are in fact specific to seed nodes, so have
been renamed accordingly, e.g. from NodeAddresses => SeedNodeAddresses.
2018-02-21 10:45:21 +01:00
Christoph Atteneder
170e2895a0
Fix rebase issues 2018-02-21 10:37:28 +01:00
Chris Beams
b392864661
Rename CoreSeedNodeRepository => DefaultSeedNodeRepository
The original name was intended to distinguish that this implementation
is the implentation that lives within Bisq's 'core' module. This commit
renames the class to DefaultSeedNodeRepository as this is more idiomatic
and intention-revealing. This implementation is in fact the only one
ever gets used; it is the 'default' (and only) implementation.
2018-02-21 10:33:20 +01:00
Chris Beams
4ac45d7fe8
Rename SeedNodesRepository => SeedNodeRepository
The idiomatic approach to naming domain-driven design (DDD)-style
repositories is to use the singular form of the object being
encapsulated by the repository, e.g. BookRepository vs. BooksRepository.

Thus far, the repository interfaces and implementations created here in
Bisq have used the latter, plural form, but going forward we should
revert to the norm. To this end, this commit renames SeedNodesRepository
and its single implementation to SeedNodeRepository and
CoreSeedNodeRepository respectively.
2018-02-21 10:33:20 +01:00
Chris Beams
a737194d39
Make CoreSeedNodesRepository#seedNodeAddresses final
Also remove the @NotThreadSafe annotation as this class is now stateless
and immutable and therefore naturally threadsafe.

See https://github.com/bisq-network/exchange/pull/1362#discussion_r169143759
for context.
2018-02-21 10:33:20 +01:00
Chris Beams
9c77f4ce57
Simplify CoreSeedNodesRepository#isSeedNode stream pipeline 2018-02-21 10:33:19 +01:00
Chris Beams
b5af59dee0
Remove NetworkStressTest to simplify CoreSeedNodesRepository
NetworkStressTest has been ignored for months because it had become
"outdated" and is therefore now dead code. It is the only place that the
CoreSeedNodesRepository#setTorSeedNodeAddresses
and #setLocalhostSeedNodeAddresses methods were called. Removing it
completely allows for removing these methods and marking the underlying
fields in CoreSeedNodesRepository as final.
2018-02-21 10:33:19 +01:00
Christoph Atteneder
879a6ad56d
Add new font style and use it for number columns 2018-02-21 10:26:30 +01:00
Christoph Atteneder
edf1884bbb
Add Fira Sans and Fira Mono font 2018-02-21 10:26:30 +01:00
stevenkain
b82132c875
Update displayStrings_ro.properties
New Romanian translations
2018-02-21 10:22:21 +01:00
stevenkain
0ccc32b6be
Update displayStrings_hu.properties
New translations
2018-02-21 10:22:21 +01:00
tau3
5bb91a3fd3 Fixed factory method for NodeAddresses in case of empty string 2018-02-21 13:17:08 +04:00
Christoph Atteneder
d377eec122
Merge pull request #1379 from stevenkain/patch-8
Update displayStrings_hu.properties
2018-02-21 09:23:32 +01:00
Christoph Atteneder
182fb5f94e
Merge pull request #1380 from stevenkain/patch-9
Update displayStrings_ro.properties
2018-02-21 09:20:05 +01:00
stevenkain
6af2fccb89
Update displayStrings_ro.properties
New Romanian translations
2018-02-20 23:08:35 +02:00
stevenkain
601bd9ea4e
Update displayStrings_hu.properties
New translations
2018-02-20 23:03:44 +02:00
stevenkain
f0a676bd33
Update displayStrings.properties
"both trades" makes no sense. Shouldn't it be "both traders"?
2018-02-20 22:41:35 +02:00
Christoph Atteneder
bc4576680d
Add dynamic decimal alignment for amount column in OfferBookView 2018-02-20 18:43:34 +01:00
Bernard Labno
fe1edafbd8 Dockerize seednode for development mode 2018-02-20 17:58:06 +01:00
Christoph Atteneder
584bb29abd
Remove unused methods 2018-02-20 17:42:42 +01:00
Christoph Atteneder
8fc1f2ced9
Use Comparator Util 2018-02-20 17:35:09 +01:00
Christoph Atteneder
9a7f59832a
Add tests for OfferBookChartViewModel 2018-02-20 17:32:24 +01:00
author
0bbb487d9c Proposed fix for Issue 1186 (Resize 'Offers to buy/sell with X'; list to Bisq's vertical window size). Sets offer table view heights within a scene height change listener. 2018-02-20 13:12:51 -03:00
Christoph Atteneder
6a2a60f4d9
Fix broken test for non-english systems 2018-02-20 14:23:46 +01:00
Christoph Atteneder
cd623af1c3
Add dynamic spacing in offer book for price and volume columns (amount is hardly going to change > 9 BTC) 2018-02-20 14:20:34 +01:00
Christoph Atteneder
6ab21f1066
Add different colorized fiat decimal places for price 2018-02-20 11:48:19 +01:00
Christoph Atteneder
2a3de280fc
Reset cell when null 2018-02-20 11:40:46 +01:00
Christoph Atteneder
12a204df91
Add colorization of zeros for volume 2018-02-20 11:22:12 +01:00
Christoph Atteneder
c2aaedc4b4
Add zero decimal places formatting for most important tables 2018-02-20 11:07:09 +01:00
Christoph Atteneder
0fffc2dd96
Fix test class 2018-02-20 10:00:24 +01:00
Christoph Atteneder
45b4ac0cb0
Merge branch 'add-monospace-font-support-roboto' of github.com:ripcurlx/exchange into add-monospace-font-support-roboto 2018-02-20 09:54:02 +01:00
Christoph Atteneder
477567b2f4
Add initial formatting for OfferBookView 2018-02-20 09:53:33 +01:00
Christoph Atteneder
021e02d17f
Improve formatting in OfferBook 2018-02-20 09:53:33 +01:00
Christoph Atteneder
2ca2d7bf09
Add formatting support for ranges 2018-02-20 09:53:33 +01:00
Christoph Atteneder
fd2f2aa33a
Add number formatting to columns 2018-02-20 09:53:32 +01:00
Christoph Atteneder
a02f586a7e
Add component tests 2018-02-20 09:53:32 +01:00
Christoph Atteneder
59123f83e6
Add number formatting to columns 2018-02-20 09:53:32 +01:00
Christoph Atteneder
bd9800721b
Use three zero places max 2018-02-20 09:53:32 +01:00
Christoph Atteneder
578ab069d8
Add coloring of decimal places with zero at the end of a number 2018-02-20 09:53:32 +01:00
Christoph Atteneder
022fbb53af
Resize table rows in offer book 2018-02-20 09:53:32 +01:00
Christoph Atteneder
727acb8ab5
Only use additional decimal places for coins when explicitly required 2018-02-20 09:50:59 +01:00
Christoph Atteneder
5db9e208c9
Use Google Roboto font 2018-02-20 09:48:44 +01:00
Christoph Atteneder
6343ff079b
Use condensed font for axis labels 2018-02-20 09:48:43 +01:00
Christoph Atteneder
0f8d549c6e
Remove unused fonts and add condensed font style 2018-02-20 09:48:43 +01:00
Christoph Atteneder
6106bade22
Add new font style and use it for number columns 2018-02-20 09:48:43 +01:00
Christoph Atteneder
9e36045c5e
Fix issue with badge icon and increased spacing of main menu items 2018-02-20 09:48:43 +01:00
Christoph Atteneder
c69184beb3
Change coin formatting precision to improve comparability 2018-02-20 09:48:43 +01:00
Christoph Atteneder
ff72ee19d5
Add smaller font size for number tables 2018-02-20 09:45:03 +01:00